mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:53:50 +00:00
template fix
This commit is contained in:
parent
c8562d8442
commit
9201baebf9
2 changed files with 11 additions and 21 deletions
|
@ -1,18 +0,0 @@
|
||||||
#include "store.hpp"
|
|
||||||
|
|
||||||
namespace MWWorld
|
|
||||||
{
|
|
||||||
template <>
|
|
||||||
void Store<ESM::Dialogue>::load(ESM::ESMReader &esm, const std::string &id) {
|
|
||||||
mStatic.push_back(ESM::Dialogue());
|
|
||||||
mStatic.back().mId = id;
|
|
||||||
mStatic.back().load(esm);
|
|
||||||
}
|
|
||||||
|
|
||||||
template <>
|
|
||||||
void Store<ESM::Script>::load(ESM::ESMReader &esm, const std::string &id) {
|
|
||||||
mStatic.push_back(ESM::Script());
|
|
||||||
mStatic.back().load(esm);
|
|
||||||
StringUtils::toLower(mStatic.back().mId);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -203,10 +203,18 @@ namespace MWWorld
|
||||||
};
|
};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
void Store<ESM::Dialogue>::load(ESM::ESMReader &esm, const std::string &id);
|
inline void Store<ESM::Dialogue>::load(ESM::ESMReader &esm, const std::string &id) {
|
||||||
|
mStatic.push_back(ESM::Dialogue());
|
||||||
|
mStatic.back().mId = id;
|
||||||
|
mStatic.back().load(esm);
|
||||||
|
}
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
void Store<ESM::Script>::load(ESM::ESMReader &esm, const std::string &id);
|
inline void Store<ESM::Script>::load(ESM::ESMReader &esm, const std::string &id) {
|
||||||
|
mStatic.push_back(ESM::Script());
|
||||||
|
mStatic.back().load(esm);
|
||||||
|
StringUtils::toLower(mStatic.back().mId);
|
||||||
|
}
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
class Store<ESM::LandTexture> : public StoreBase
|
class Store<ESM::LandTexture> : public StoreBase
|
||||||
|
|
Loading…
Reference in a new issue