From be7fd9be5090cff9035378d0ce17280514a4b534 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Thu, 17 Feb 2011 21:45:45 +0100 Subject: TOON: Initialise all locations. This stops the location save code from walking off the end of _rifBoxesFlags due to _numRifBoxes being invalid. Fix for bug #3183934 ("TOON: Crash on save"). --- engines/toon/state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/toon/state.cpp') diff --git a/engines/toon/state.cpp b/engines/toon/state.cpp index abd8a409a6..f676a65025 100644 --- a/engines/toon/state.cpp +++ b/engines/toon/state.cpp @@ -54,7 +54,7 @@ void Location::load(Common::ReadStream *stream) { } State::State(void) { - for (int32 i = 0; i < 64; i++) { + for (int32 i = 0; i < 256; i++) { _locations[i]._visited = false; _locations[i]._numSceneAnimations = 0; _locations[i]._numRifBoxes = 0; -- cgit v1.2.3