Don't break the entire JS simulation if someone starts this map with treasures disabled.
commit4cb5d6fa7b2bf70731656662089cff9a4c7e1eb9
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sat, 24 Mar 2018 15:08:34 +0000 (24 15:08 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sat, 24 Mar 2018 15:08:34 +0000 (24 15:08 +0000)
tree57c8bad4401ec9457bd8b7460792ad6a9f7cc191
parentb37d7e5c6be96de5f549e9a5104693c7abfdc1cd
Don't break the entire JS simulation if someone starts this map with treasures disabled.

They are deleted before InitGame, resulting in the ownershipChange handler wanting to read from the entity ID arrays which weren't initialized yet.

Reported By: mapkoc
Refs https://wildfiregames.com/forum/index.php?/topic/24153-is-this-fixed/

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@21615 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/maps/random/jebel_barkal_triggers.js