aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAlyssa Milburn2011-02-17 21:45:45 +0100
committerAlyssa Milburn2011-02-17 21:47:27 +0100
commitbe7fd9be5090cff9035378d0ce17280514a4b534 (patch)
treec621af32cfc096d2d7d9f09e6769fc9c53f11aff /engines
parentec94ef4e642b4b6ee8f9febce0fa710e79939b4f (diff)
downloadscummvm-rg350-be7fd9be5090cff9035378d0ce17280514a4b534.tar.gz
scummvm-rg350-be7fd9be5090cff9035378d0ce17280514a4b534.tar.bz2
scummvm-rg350-be7fd9be5090cff9035378d0ce17280514a4b534.zip
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").
Diffstat (limited to 'engines')
-rw-r--r--engines/toon/state.cpp2
1 files changed, 1 insertions, 1 deletions
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;