[Scummvm-cvs-logs] scummvm master -> be7fd9be5090cff9035378d0ce17280514a4b534
fuzzie
fuzzie at fuzzie.org
Thu Feb 17 21:48:51 CET 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
be7fd9be50 TOON: Initialise all locations.
Commit: be7fd9be5090cff9035378d0ce17280514a4b534
https://github.com/scummvm/scummvm/commit/be7fd9be5090cff9035378d0ce17280514a4b534
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-02-17T12:47:27-08:00
Commit Message:
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").
Changed paths:
engines/toon/state.cpp
diff --git a/engines/toon/state.cpp b/engines/toon/state.cpp
index abd8a40..f676a65 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;
More information about the Scummvm-git-logs
mailing list