From 5a852fe6dba14b5fa6c33fdfb8b0ebe0927bc04d Mon Sep 17 00:00:00 2001 From: David Cernat Date: Fri, 4 Jun 2021 01:22:13 +0200 Subject: [PATCH] [Client] Fix warnings related to declarations --- apps/openmw/mwmp/PlayerList.hpp | 4 ++-- apps/openmw/mwmp/processors/worldstate/ProcessorCellReset.hpp | 1 - apps/openmw/mwscript/containerextensions.cpp | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/openmw/mwmp/PlayerList.hpp b/apps/openmw/mwmp/PlayerList.hpp index 9967b2a7e..5a3e09850 100644 --- a/apps/openmw/mwmp/PlayerList.hpp +++ b/apps/openmw/mwmp/PlayerList.hpp @@ -9,6 +9,8 @@ #include "../mwworld/manualref.hpp" +#include "DedicatedPlayer.hpp" + #include #include @@ -19,8 +21,6 @@ namespace MWMechanics namespace mwmp { - struct DedicatedPlayer; - class PlayerList { public: diff --git a/apps/openmw/mwmp/processors/worldstate/ProcessorCellReset.hpp b/apps/openmw/mwmp/processors/worldstate/ProcessorCellReset.hpp index b326ddc22..d40112ae5 100644 --- a/apps/openmw/mwmp/processors/worldstate/ProcessorCellReset.hpp +++ b/apps/openmw/mwmp/processors/worldstate/ProcessorCellReset.hpp @@ -19,7 +19,6 @@ namespace mwmp LOG_MESSAGE_SIMPLE(TimedLog::LOG_INFO, "Received ID_CELL_RESET"); CellController* cellController = Main::get().getCellController(); - MWBase::World * world = MWBase::Environment::get().getWorld(); mwmp::Main::get().getNetworking()->getWorldstate()->resetCells(&worldstate.cellsToReset); } diff --git a/apps/openmw/mwscript/containerextensions.cpp b/apps/openmw/mwscript/containerextensions.cpp index e14cbd69a..506bee6ca 100644 --- a/apps/openmw/mwscript/containerextensions.cpp +++ b/apps/openmw/mwscript/containerextensions.cpp @@ -135,8 +135,6 @@ namespace MWScript return; } - MWWorld::ContainerStore& store = ptr.getClass().getContainerStore(ptr); - /* Start of tes3mp change (major)