aboutsummaryrefslogtreecommitdiff
path: root/saga/script.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-10-09 07:39:46 +0000
committerTorbjörn Andersson2004-10-09 07:39:46 +0000
commit64a91605a11152e2b1c54eba0e5ae9d514530028 (patch)
treed090c55c229e7aded7829780b0403891a5808109 /saga/script.cpp
parentc68b6323e502af2bc8af682dac17603091cd5240 (diff)
downloadscummvm-rg350-64a91605a11152e2b1c54eba0e5ae9d514530028.tar.gz
scummvm-rg350-64a91605a11152e2b1c54eba0e5ae9d514530028.tar.bz2
scummvm-rg350-64a91605a11152e2b1c54eba0e5ae9d514530028.zip
Initial attempt at fixing the SData problem. I'm still not sure exactly how
to fix the script "static" area, though. In addition, initialise a few variables, and test for NULL-ness of a few pointers. This fixes a few crashes I saw with yesterday's CVS snapshot. There's still an unexpected scene change in the intro (I think it triggers on Rhene walking too close to the exit), but at least it no longer crashes. svn-id: r15484
Diffstat (limited to 'saga/script.cpp')
-rw-r--r--saga/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/saga/script.cpp b/saga/script.cpp
index d2b25f699e..6d4f11f6b8 100644
--- a/saga/script.cpp
+++ b/saga/script.cpp
@@ -112,7 +112,7 @@ Script::Script() {
// Skip the unused portion of the structure
for (j = scriptS.pos(); j < prevTell + _scriptLUTEntryLen; j++) {
if (scriptS.readByte() != 0)
- error("Unused scriptLUT part isn't really unused for LUT %d (pos: %d)", i, j);
+ warning("Unused scriptLUT part isn't really unused for LUT %d (pos: %d)", i, j);
}
}