diff mm7_2.cpp @ 2195:70b63fe6587c

fixing a few bugs reported by PVS
author Grumpy7
date Thu, 30 Jan 2014 23:03:04 +0100
parents 48a28fe1f32f
children 42c8807225a2
line wrap: on
line diff
--- a/mm7_2.cpp	Thu Jan 30 22:11:28 2014 +0100
+++ b/mm7_2.cpp	Thu Jan 30 23:03:04 2014 +0100
@@ -1228,12 +1228,11 @@
       pMonster->uTetherDistance = 256;
       pMonster->vInitialPosition.y = a4;
       pMonster->vPosition.y = a4;
-      pTexture = 0;
       pMonster->vInitialPosition.z = a3;
       pMonster->vPosition.z = a3;
       pMonster->uSectorID = pSector;
       pMonster->uGroup = spawn->uGroup;
-      pMonster->PrepareSprites((char)pTexture);
+      pMonster->PrepareSprites(0);
       pMonster->pMonsterInfo.uHostilityType = MonsterInfo::Hostility_Friendly;
       v32 = rand();
       a3 = fixpoint_mul(stru_5C6E00->Cos(v32 % 2048), v52);