refactor(Scripts/Karazhan): 'uint' It can never be less than 0 (#18726)

Update boss_chess_event.cpp
This commit is contained in:
天鹿
2024-04-27 17:17:38 +08:00
committed by GitHub
parent 7a2f6ff8e5
commit 81280cd560

View File

@@ -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;