refactor(Scripts/Karazhan): 'uint' It can never be less than 0 (#18726)
Update boss_chess_event.cpp
This commit is contained in:
parent
7a2f6ff8e5
commit
81280cd560
1 changed files with 1 additions and 1 deletions
|
|
@ -467,7 +467,7 @@ struct npc_echo_of_medivh : public ScriptedAI
|
|||
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 (!IsFriendly(piece, targetPiece))
|
||||
return targetPiece;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue