Skip to content

Commit

Permalink
TOON: Initialise all locations.
Browse files Browse the repository at this point in the history
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").
  • Loading branch information
fuzzie committed Feb 17, 2011
1 parent ec94ef4 commit be7fd9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/toon/state.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit be7fd9b

Please sign in to comment.