From 144e0197fb049ddc15993ae1d4fee2a645b3ed1c Mon Sep 17 00:00:00 2001 From: "florent.teppe" Date: Sun, 29 Jan 2023 12:06:05 +0100 Subject: [PATCH] fix charge int + struct vs class mismatch --- apps/openmw/mwbase/world.hpp | 2 +- apps/openmw/mwworld/cellref.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);