diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 7ae6a1842..ad4807f13 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7731,8 +7731,7 @@ void Unit::ClearInCombat() // Player's state will be cleared in Player::UpdateContestedPvP if (GetTypeId() != TYPEID_PLAYER) { - Creature* creature = (Creature*)this; - if (creature->GetCreatureInfo() && creature->GetCreatureInfo()->unit_flags & UNIT_FLAG_OOC_NOT_ATTACKABLE) + if (((Creature*)this)->GetCreatureInfo()->unit_flags & UNIT_FLAG_OOC_NOT_ATTACKABLE) SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE); clearUnitState(UNIT_STAT_ATTACK_PLAYER); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 42b50d01e..406389aa3 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10921" + #define REVISION_NR "10922" #endif // __REVISION_NR_H__