From 81280cd560fbb87f15a7a646330ae5c3e3fdf419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A9=E9=B9=BF?= <18535853+PkllonG@users.noreply.github.com> Date: Sat, 27 Apr 2024 17:17:38 +0800 Subject: [PATCH] refactor(Scripts/Karazhan): 'uint' It can never be less than 0 (#18726) Update boss_chess_event.cpp --- .../scripts/EasternKingdoms/Karazhan/boss_chess_event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_chess_event.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_chess_event.cpp index 564c6a75d..c74f4e088 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_chess_event.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_chess_event.cpp @@ -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;