comparison Actor.cpp @ 1759:845a6503f55c

fixing some itemarray zero accesses
author Grumpy7
date Tue, 01 Oct 2013 06:17:32 +0200
parents 8251e59fd7c1
children 2051dfa0a00c
comparison
equal deleted inserted replaced
1749:42a1874a2171 1759:845a6503f55c
3010 case MONSTER_DRAGON_1: case MONSTER_DRAGON_2: case MONSTER_DRAGON_3: 3010 case MONSTER_DRAGON_1: case MONSTER_DRAGON_2: case MONSTER_DRAGON_3:
3011 drop.uItemID = ITEM_DRAGON_EYE; 3011 drop.uItemID = ITEM_DRAGON_EYE;
3012 break; 3012 break;
3013 } 3013 }
3014 3014
3015 if (rand() % 100 < 20) 3015 if (rand() % 100 < 20 && drop.uItemID != 0)
3016 { 3016 {
3017 sub_42F7EB_DropItemAt(pItemsTable->pItems[drop.uItemID].uSpriteID, 3017 sub_42F7EB_DropItemAt(pItemsTable->pItems[drop.uItemID].uSpriteID,
3018 actor->vPosition.x, 3018 actor->vPosition.x,
3019 actor->vPosition.y, 3019 actor->vPosition.y,
3020 actor->vPosition.z + 16, 3020 actor->vPosition.z + 16,