fix memory leak for knight's starting pony
makemon() has a 1% chance to bestow a worn saddle when creating any rideable monster. If that chance kicked in on a knight's starting pony, an extra saddle would end up being created but not worn nor in inventory nor on floor so not be freed when the game ended. That 1% chance also overrode saddle suppression for pauper knights. There wouldn't be any extra saddle but their pony could start with one, against intent. Have makedog() (which is only used for starting pet) tell makemon() to suppress inventory when creating the initial pet.
This commit is contained in:
@@ -2088,6 +2088,9 @@ shop bug: buying a container with unpaid items in it could produce impossible
|
||||
"unpaid_cost: object not on any bill" warnings
|
||||
when walking into/against a locked closed door, 'autounlock'==kick didn't
|
||||
execute kick when player answered yes to "Door is locked. Kick it?"
|
||||
having a 1% chance of creating rideable monsters with worn saddle gave knights
|
||||
a 1% chance of creating an extra saddle for starting pony; it wasn't
|
||||
tracked with other objects so produced a trivial memory leak
|
||||
|
||||
|
||||
Fixes to 3.7.0-x Platform and/or Interface Problems Exposed Via git Repository
|
||||
|
||||
Reference in New Issue
Block a user