Fixed Linux compialtion

crashfix_debugdraw
florent.teppe 2 years ago
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…
Cancel
Save