1
0
Fork 1
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:
Marc Zinnschlag 2012-11-22 10:19:11 +01:00
parent c8562d8442
commit 9201baebf9
2 changed files with 11 additions and 21 deletions

View file

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

View file

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