1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

fix charge int + struct vs class mismatch

This commit is contained in:
florent.teppe 2023-01-29 12:06:05 +01:00
parent ebfee18e35
commit 144e0197fb
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ namespace MWWorld
class TimeStamp; class TimeStamp;
class ESMStore; class ESMStore;
class RefData; class RefData;
struct Cell; class Cell;
typedef std::vector<std::pair<MWWorld::Ptr, MWMechanics::Movement>> PtrMovementList; typedef std::vector<std::pair<MWWorld::Ptr, MWMechanics::Movement>> PtrMovementList;
} }

View File

@ -104,7 +104,7 @@ namespace MWWorld
{ {
struct Visitor 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; } int operator()(const ESM4::Reference& ref) { return 0; }
}; };
return std::visit(Visitor(), mCellRef.mVariant); return std::visit(Visitor(), mCellRef.mVariant);