From 45aca22e7947735a4f60751e28bfaefcde63543a Mon Sep 17 00:00:00 2001 From: Yehonal Date: Tue, 3 Sep 2019 17:45:49 +0000 Subject: [PATCH] [AZTH-MS] Fixed crash on some dimensions --- modules/AZTH/src/AZTH_SC.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/AZTH/src/AZTH_SC.cpp b/modules/AZTH/src/AZTH_SC.cpp index 2e69fdd5..15aacddb 100644 --- a/modules/AZTH/src/AZTH_SC.cpp +++ b/modules/AZTH/src/AZTH_SC.cpp @@ -1281,7 +1281,8 @@ public: return true; } else if (repRank <= REP_HOSTILE && ft1 && ft2 && ft1->IsFriendlyTo(*ft2)) { - fieldBuffer << (unit->GetUInt32Value(UNIT_FIELD_BYTES_2) | unit->GetUInt32Value(UNIT_BYTE2_FLAG_FFA_PVP << 8)); + // this needs that the realm has the PvP switch (rp pvp realm type for example) to work + fieldBuffer << (unit->GetUInt32Value(UNIT_FIELD_BYTES_2) | (UNIT_BYTE2_FLAG_FFA_PVP << 8)); return true; }