mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
fix charge int + struct vs class mismatch
This commit is contained in:
parent
ebfee18e35
commit
144e0197fb
@ -94,7 +94,7 @@ namespace MWWorld
|
||||
class TimeStamp;
|
||||
class ESMStore;
|
||||
class RefData;
|
||||
struct Cell;
|
||||
class Cell;
|
||||
|
||||
typedef std::vector<std::pair<MWWorld::Ptr, MWMechanics::Movement>> PtrMovementList;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user