aboutsummaryrefslogtreecommitdiff
path: root/script_v1.cpp
diff options
context:
space:
mode:
authorJames Brown2002-04-11 20:10:47 +0000
committerJames Brown2002-04-11 20:10:47 +0000
commit6e508eed2962fc29f16a4507d056a3c3483c3e6a (patch)
tree3cda95b932adcfbe3c7130a8b94dbb09c7d3fc43 /script_v1.cpp
parent7696081c54a6cac8152a227bd9d0bcc41999f261 (diff)
downloadscummvm-rg350-6e508eed2962fc29f16a4507d056a3c3483c3e6a.tar.gz
scummvm-rg350-6e508eed2962fc29f16a4507d056a3c3483c3e6a.tar.bz2
scummvm-rg350-6e508eed2962fc29f16a4507d056a3c3483c3e6a.zip
Fix anti-aliasing crash and a Zak crash. Note there are still AA
artifacts left on screen. Anyone want to fix this? :) svn-id: r3909
Diffstat (limited to 'script_v1.cpp')
-rw-r--r--script_v1.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/script_v1.cpp b/script_v1.cpp
index 286f55e947..1d92459a0c 100644
--- a/script_v1.cpp
+++ b/script_v1.cpp
@@ -2702,11 +2702,10 @@ void Scumm::o5_pickupObjectOld()
return;
if (whereIsObject(obj) == WIO_INVENTORY) /* Don't take an */
- return; /* object twice */
+ return; /* object twice */
// warning("adding %d from %d to inventoryOld", obj, _currentRoom);
- addObjectToInventory(obj, _currentRoom);
- // warning("added to inventoryOld");
+ addObjectToInventory(obj, _currentRoom);
removeObjectFromRoom(obj);
putOwner(obj, _vars[VAR_EGO]);
putClass(obj, 32, 1);