From 64a91605a11152e2b1c54eba0e5ae9d514530028 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 9 Oct 2004 07:39:46 +0000 Subject: 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 --- saga/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'saga/script.cpp') 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); } } -- cgit v1.2.3