refactor(Scripts/Karazhan): 'uint' It can never be less than 0 (#18726)
Update boss_chess_event.cpp
This commit is contained in:
@@ -467,7 +467,7 @@ struct npc_echo_of_medivh : public ScriptedAI
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newRow < MAX_ROW && newCol < MAX_COL && newRow >= 0 && newCol >= 0)
|
if (newRow < MAX_ROW && newCol < MAX_COL)
|
||||||
if (Creature* targetPiece = ObjectAccessor::GetCreature(*me, _boards[newRow][newCol].pieceGUID))
|
if (Creature* targetPiece = ObjectAccessor::GetCreature(*me, _boards[newRow][newCol].pieceGUID))
|
||||||
if (!IsFriendly(piece, targetPiece))
|
if (!IsFriendly(piece, targetPiece))
|
||||||
return targetPiece;
|
return targetPiece;
|
||||||
|
|||||||
Reference in New Issue
Block a user