diff options
author | Willem Jan Palenstijn | 2010-10-07 14:57:59 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2010-10-07 14:57:59 +0000 |
commit | 95118b172e2b2d545f6cdfe32119ce28b062bfd4 (patch) | |
tree | 3649868953267ee41477ade409cc126d9027766d /engines | |
parent | 2879e19b6a95917ea9c7b937ab31d9b7cac41693 (diff) | |
download | scummvm-rg350-95118b172e2b2d545f6cdfe32119ce28b062bfd4.tar.gz scummvm-rg350-95118b172e2b2d545f6cdfe32119ce28b062bfd4.tar.bz2 scummvm-rg350-95118b172e2b2d545f6cdfe32119ce28b062bfd4.zip |
SCI: Still show warning for uninit. reads in release mode
svn-id: r53047
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/vm.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index a7f26419c8..7342f8ca7b 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -210,6 +210,10 @@ static reg_t validate_read_var(reg_t *r, reg_t *stack_base, int type, int max, i if (solution.type == WORKAROUND_NONE) { #ifdef RELEASE_BUILD // If we are running an official ScummVM release -> fake 0 in unknown cases + warning("Uninitialized read for temp %d from method %s::%s (script %d, room %d, localCall %x)", + index, originReply.objectName.c_str(), originReply.methodName.c_str(), originReply.scriptNr, + g_sci->getEngineState()->currentRoomNumber(), originReply.localCallOffset); + r[index] = NULL_REG; break; #else |