1
0
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:
florent.teppe 2022-07-18 22:26:30 +02:00
parent 0be4521291
commit ede46745b5
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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>