From ba773259cd52c1a00f351ff5afd88bdac4dbfcda Mon Sep 17 00:00:00 2001 From: staphen Date: Wed, 29 Jan 2025 09:58:31 -0500 Subject: [PATCH] Fix gcc/MSVC compiler warnings --- 3rdParty/libzt/CMakeLists.txt | 1 + Source/engine/path.cpp | 2 +- Source/items.cpp | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdParty/libzt/CMakeLists.txt b/3rdParty/libzt/CMakeLists.txt index d9d09ea02..164fe689d 100644 --- a/3rdParty/libzt/CMakeLists.txt +++ b/3rdParty/libzt/CMakeLists.txt @@ -22,6 +22,7 @@ foreach( lwip_obj miniupnpc_obj zto_pic + zt_pic natpmp_pic lwip_pic miniupnpc_pic diff --git a/Source/engine/path.cpp b/Source/engine/path.cpp index 06affadc5..e02095afa 100644 --- a/Source/engine/path.cpp +++ b/Source/engine/path.cpp @@ -170,7 +170,7 @@ int ReconstructPath(const ExploredNodes &explored, PointT dest, int8_t *path, si } std::reverse(path, path + len); std::fill(path + len, path + maxPathLength, -1); - return len; + return static_cast(len); } } // namespace diff --git a/Source/items.cpp b/Source/items.cpp index 869f034b3..daf13abed 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -4271,7 +4271,6 @@ void UseItem(Player &player, item_misc_id mid, SpellID spellID, int spellFrom) if (ControlMode == ControlTypes::KeyboardAndMouse && GetSpellData(spellID).isTargeted()) { prepareSpellID = spellID; } else { - const int spellLevel = player.GetSpellLevel(spellID); // Find a valid target for the spell because tile coords // will be validated when processing the network message Point target = cursPosition;