diff Party.cpp @ 848:ceef50611567

* AI fixed (temporary) * PID_ID, PID_TYPE replaces * >> 7 error in AudioPlayer
author zipi
date Sun, 31 Mar 2013 10:44:43 +0100
parents 0f56abdcce94
children 8fc2f035abc0
line wrap: on
line diff
--- a/Party.cpp	Sat Mar 30 19:36:05 2013 +0400
+++ b/Party.cpp	Sun Mar 31 10:44:43 2013 +0100
@@ -142,7 +142,7 @@
   {
     if ( pTurnEngine->field_4 != 2 || PID_TYPE(pTurnEngine->pQueue[0].uPackedID) != OBJECT_Player)
       return 0;
-    v2 = pTurnEngine->pQueue[0].uPackedID >> 3;
+    v2 = PID_ID(pTurnEngine->pQueue[0].uPackedID);
     return v2 + 1;
   }
   v4 = 0;