mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user