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:
parent
ebfee18e35
commit
144e0197fb
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user