[Scummvm-cvs-logs] SF.net SVN: scummvm:[52688] scummvm/trunk/engines/sci/engine/script.cpp
lskovlun at users.sourceforge.net
lskovlun at users.sourceforge.net
Sun Sep 12 20:13:15 CEST 2010
Revision: 52688
http://scummvm.svn.sourceforge.net/scummvm/?rev=52688&view=rev
Author: lskovlun
Date: 2010-09-12 18:13:14 +0000 (Sun, 12 Sep 2010)
Log Message:
-----------
Workaround for bug #038837: HOYLE3: EGA/VGA Crashes. Needs further
investigation and a proper fix post-release
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/script.cpp
Modified: scummvm/trunk/engines/sci/engine/script.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/script.cpp 2010-09-12 17:58:48 UTC (rev 52687)
+++ scummvm/trunk/engines/sci/engine/script.cpp 2010-09-12 18:13:14 UTC (rev 52688)
@@ -310,6 +310,16 @@
void Script::decrementLockers() {
if (_lockers > 0)
_lockers--;
+
+ // WORKAROUND for bug #3038837: HOYLE3: EGA/VGA Crashes
+ // This is caused by script 0 lockers reaching zero. Since
+ // this should never happen, I'm confident in making this a
+ // non-specific fix.
+ //
+ // TODO: Figure out why this happens, and fix it properly!
+ if (_nr == 0 && _lockers == 0)
+ _lockers++;
+
}
int Script::getLockers() const {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list