From 569911121dec986cb4c86901f4a972434bf2b20f Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sat, 27 Jan 2018 22:03:21 +0200 Subject: [PATCH] [Client] Fix build --- apps/openmw/mwmp/DedicatedActor.cpp | 2 +- apps/openmw/mwmp/LocalPlayer.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwmp/DedicatedActor.cpp b/apps/openmw/mwmp/DedicatedActor.cpp index 7eb1b8492..0ec9de542 100644 --- a/apps/openmw/mwmp/DedicatedActor.cpp +++ b/apps/openmw/mwmp/DedicatedActor.cpp @@ -168,7 +168,7 @@ void DedicatedActor::setEquipment() for (int slot = 0; slot < MWWorld::InventoryStore::Slots; ++slot) { - int count = equipedItems[slot].count; + int count = equipmentItems[slot].count; // If we've somehow received a corrupted item with a count lower than 0, ignore it if (count < 0) continue; diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index b68a44a16..50caa315d 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -761,7 +761,7 @@ void LocalPlayer::resurrect() MWBase::World *world = MWBase::Environment::get().getWorld(); MWWorld::Ptr ptrPlayer = getPlayerPtr(); - switch (player->resurrectType) + switch (resurrectType) { case ResurrectType::Regular: break; @@ -1159,7 +1159,7 @@ void LocalPlayer::setFactions() MWWorld::Ptr ptrPlayer = getPlayerPtr(); MWMechanics::NpcStats &ptrNpcStats = ptrPlayer.getClass().getNpcStats(ptrPlayer); - LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received ID_PLAYER_FACTION from server\n- action: %i", factionChanges.action); + LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received ID_PLAYER_FACTION from server"); for (const auto &faction : factionChanges.factions) {