miki151 / keeperrl

Source code of KeeperRL
GNU General Public License v2.0
890 stars 112 forks source link

CRASH when you claim furniture that will delete itself #2029

Open samuellsk opened 1 year ago

samuellsk commented 1 year ago

image

i know, not a vanilla bug ... yet....

Have a few controllers in the prebuilt base that player is supposed to claim in the end of "tutorial" , but if he does that before all the controllers (invisible furniture on the ceiling...) is removed (controller has RemoveFurniture function after executing actions) , than this crash will pop.

short example:

"ABYSSUS_TOMB_SCROLL_USED" { name = "scroll check" canBuildOutsideOfTerritory = true layer = MIDDLE tickType = Effect Filter Frequency 3 { Filter Flag "abyssus_tomb_scroll_used_message" { some stuff... ... SetFlag "abyssus_tomb_scroll_used_message" false RemoveFurniture "ABYSSUS_TOMB_SCROLL_USED" } .. .

If player claims the tiles , before this is triggered, the remove furniture will crash the game.