[Scummvm-cvs-logs] SF.net SVN: scummvm: [29036] scummvm/trunk/engines/agi/preagi_winnie.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Sun Sep 23 02:27:36 CEST 2007
Revision: 29036
http://scummvm.svn.sourceforge.net/scummvm/?rev=29036&view=rev
Author: mthreepwood
Date: 2007-09-22 17:27:36 -0700 (Sat, 22 Sep 2007)
Log Message:
-----------
randomize() can no longer create "object 41" -- there is no object 41, and when we attempt to draw it, it can cause crashes
Modified Paths:
--------------
scummvm/trunk/engines/agi/preagi_winnie.cpp
Modified: scummvm/trunk/engines/agi/preagi_winnie.cpp
===================================================================
--- scummvm/trunk/engines/agi/preagi_winnie.cpp 2007-09-23 00:12:07 UTC (rev 29035)
+++ scummvm/trunk/engines/agi/preagi_winnie.cpp 2007-09-23 00:27:36 UTC (rev 29036)
@@ -133,7 +133,7 @@
for (int i = 0; i < IDI_WTP_MAX_OBJ_MISSING; i++) {
done = false;
while (!done) {
- iObj = _vm->rnd(IDI_WTP_MAX_OBJ - 1) + 2;
+ iObj = _vm->rnd(IDI_WTP_MAX_OBJ - 1) + 1;
done = true;
for (int j = 0; j < IDI_WTP_MAX_OBJ_MISSING; j++) {
if (game.iUsedObj[j] == iObj) {
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