davewx7 / citadel

A turn based strategy game based on the Anura engine
Other
98 stars 25 forks source link

Assertion failure when using Flesh Golem's Remake after using Dark Emissary's Dark Sacrifice on it #136

Closed leper closed 6 years ago

leper commented 6 years ago

This is somewhat of a race condition, but if you are fast enough to select the Flesh Golem after using Dark Sacrifice on it, to be able to select/click on remake you get an assertion failure.

This seems unexpected, it would be better if this was just silently ignored since there is nothing valid that can be done.

modules/citadel/data/classes/game_state.cfg:357 where creature != null, which in this case is violated as the Flesh Golem was already destroyed.

davewx7 commented 6 years ago

Fixed; thank you for the report!