mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 10:21:09 +00:00
Fixed Linux compialtion
This commit is contained in:
parent
0be4521291
commit
ede46745b5
@ -129,7 +129,7 @@ namespace
|
||||
|
||||
static int sRecordTypeCounter = 0;
|
||||
|
||||
#define AddStoreType(__Type) const int MWWorld::SRecordType<__Type>::recordId = sRecordTypeCounter++;
|
||||
#define AddStoreType(__Type)template<> const int MWWorld::SRecordType<__Type>::recordId = sRecordTypeCounter++;
|
||||
|
||||
AddStoreType(ESM::Activator);
|
||||
AddStoreType(ESM::Potion);
|
||||
|
@ -114,7 +114,7 @@ namespace MWWorld
|
||||
void load(ESM::ESMReader &esm, Loading::Listener* listener, ESM::Dialogue*& dialogue);
|
||||
|
||||
template <class T>
|
||||
const Store<T>& get() const {return static_cast<const Store<T>&>(*mStores[GetRecordTypeId(T)]);};
|
||||
const Store<T>& get() const {return static_cast<const Store<T>&>(*mStores[GetRecordTypeId(T)]);}
|
||||
|
||||
/// Insert a custom record (i.e. with a generated ID that will not clash will pre-existing records)
|
||||
template <class T>
|
||||
|
Loading…
x
Reference in New Issue
Block a user