Mercurial > mm7
diff Actor.cpp @ 1909:18dacb49efe9
Actor::AI_Flee fixing crash
author | Grumpy7 |
---|---|
date | Tue, 22 Oct 2013 00:04:14 -0700 |
parents | 1eb0515ff54b |
children | 8d3723ca71e6 af38275939cc |
line wrap: on
line diff
--- a/Actor.cpp Mon Oct 21 23:20:29 2013 -0700 +++ b/Actor.cpp Tue Oct 22 00:04:14 2013 -0700 @@ -2193,8 +2193,8 @@ Actor *v5; // ebx@1 int v7; // ecx@2 unsigned __int16 v9; // ax@15 - AIDirection* v10 = nullptr; // [sp+8h] [bp-7Ch]@4 - AIDirection* a3 = nullptr; // [sp+24h] [bp-60h]@3 + AIDirection v10; // [sp+8h] [bp-7Ch]@4 + AIDirection a3; // [sp+24h] [bp-60h]@3 AIDirection* v13; // [sp+5Ch] [bp-28h]@4 v5 = &pActors[uActorID]; @@ -2203,9 +2203,9 @@ v7 = PID(OBJECT_Actor,uActorID); if ( !a4 ) { - a4 = Actor::GetDirectionInfo(v7, sTargetPid, a3, v5->pMonsterInfo.uFlying); + a4 = Actor::GetDirectionInfo(v7, sTargetPid, &a3, v5->pMonsterInfo.uFlying); } - v13 = Actor::GetDirectionInfo(v7, 4u, v10, 0); + v13 = Actor::GetDirectionInfo(v7, 4u, &v10, 0); if ( MonsterStats::BelongsToSupertype(v5->pMonsterInfo.uID, MONSTER_SUPERTYPE_TREANT) || PID_TYPE(sTargetPid) == OBJECT_Actor && v13->uDistance < 307.2 ) {