1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-27 03:40:24 +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; 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::Activator);
AddStoreType(ESM::Potion); AddStoreType(ESM::Potion);

View file

@ -114,7 +114,7 @@ namespace MWWorld
void load(ESM::ESMReader &esm, Loading::Listener* listener, ESM::Dialogue*& dialogue); void load(ESM::ESMReader &esm, Loading::Listener* listener, ESM::Dialogue*& dialogue);
template <class T> 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) /// Insert a custom record (i.e. with a generated ID that will not clash will pre-existing records)
template <class T> template <class T>