[AZTH-MS] Fixed crash on some dimensions

This commit is contained in:
Yehonal
2019-09-03 17:45:49 +00:00
parent 9322cbe304
commit 45aca22e79

View File

@@ -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;
}