From bf4e3febebf54e8e7b94c6685be285273d85293a Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 3 Aug 2016 21:19:53 +0100 Subject: [PATCH] Fix #4207: Scenario Editor freezes the game Recent commits have caused the sprite spatial index to be uninitialised for the editor modes. Call eset_sprite_spatial_index within eset_sprite_list as the two come hand in hand. --- src/world/sprite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/world/sprite.c b/src/world/sprite.c index 446df6dd2e..b19937fbc2 100644 --- a/src/world/sprite.c +++ b/src/world/sprite.c @@ -128,6 +128,8 @@ void reset_sprite_list() } gSpriteListCount[SPRITE_LIST_NULL] = MAX_SPRITES; + + reset_sprite_spatial_index(); } /**