diff --git a/CMakePresets.json b/CMakePresets.json index 21c0c908845..0bd22012bed 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -25,8 +25,7 @@ "displayName": "Windows - Release", "description": "Windows Release Build", "cacheVariables": { - "VCPKG_TARGET_TRIPLET": "x64-windows-static", - "SPEED_UP_BUILD_UNITY": "OFF" + "VCPKG_TARGET_TRIPLET": "x64-windows-static" }, "architecture": { "value": "x64", diff --git a/src/server/network/protocol/protocolgame.cpp b/src/server/network/protocol/protocolgame.cpp index a296a2eb492..e3d94942670 100644 --- a/src/server/network/protocol/protocolgame.cpp +++ b/src/server/network/protocol/protocolgame.cpp @@ -1658,12 +1658,12 @@ void ProtocolGame::parseSetOutfit(NetworkMessage &msg) { return; } + uint16_t startBufferPosition = msg.getBufferPosition(); Module* outfitModule = g_modules().getEventByRecvbyte(0xD3, false); if (outfitModule) { outfitModule->executeOnRecvbyte(player, msg); } - uint16_t startBufferPosition = msg.getBufferPosition(); if (msg.getBufferPosition() == startBufferPosition) { uint8_t outfitType = !oldProtocol ? msg.getByte() : 0; Outfit_t newOutfit;