diff Actor.cpp @ 1759:845a6503f55c

fixing some itemarray zero accesses
author Grumpy7
date Tue, 01 Oct 2013 06:17:32 +0200
parents 8251e59fd7c1
children 2051dfa0a00c
line wrap: on
line diff
--- a/Actor.cpp	Mon Sep 30 06:09:29 2013 +0200
+++ b/Actor.cpp	Tue Oct 01 06:17:32 2013 +0200
@@ -3012,7 +3012,7 @@
     break;
   }
 
-  if (rand() % 100 < 20)
+  if (rand() % 100 < 20 && drop.uItemID != 0)
   {
     sub_42F7EB_DropItemAt(pItemsTable->pItems[drop.uItemID].uSpriteID,
       actor->vPosition.x,