diff --git a/apps/openmw/mwbase/world.hpp b/apps/openmw/mwbase/world.hpp index fc7bc21d8b..0e8af6eae9 100644 --- a/apps/openmw/mwbase/world.hpp +++ b/apps/openmw/mwbase/world.hpp @@ -94,7 +94,7 @@ namespace MWWorld class TimeStamp; class ESMStore; class RefData; - struct Cell; + class Cell; typedef std::vector> PtrMovementList; } diff --git a/apps/openmw/mwworld/cellref.hpp b/apps/openmw/mwworld/cellref.hpp index 85acc1e548..25c3e768ef 100644 --- a/apps/openmw/mwworld/cellref.hpp +++ b/apps/openmw/mwworld/cellref.hpp @@ -104,7 +104,7 @@ namespace MWWorld { struct Visitor { - int operator()(const ESM::CellRef& ref) { return ref.mChargeFloat; } + int operator()(const ESM::CellRef& ref) { return ref.mChargeInt; } int operator()(const ESM4::Reference& ref) { return 0; } }; return std::visit(Visitor(), mCellRef.mVariant);