From bc218759e91ff7d8facb673fd06501a5fe5ac097 Mon Sep 17 00:00:00 2001 From: greye Date: Wed, 7 Nov 2012 15:38:25 +0400 Subject: [PATCH] forgotten module --- apps/openmw/mwworld/store.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/openmw/mwworld/store.cpp diff --git a/apps/openmw/mwworld/store.cpp b/apps/openmw/mwworld/store.cpp new file mode 100644 index 0000000000..5a6b6a7630 --- /dev/null +++ b/apps/openmw/mwworld/store.cpp @@ -0,0 +1,18 @@ +#include "store.hpp" + +namespace MWWorld +{ + template <> + void Store::load(ESM::ESMReader &esm, const std::string &id) { + mStatic.push_back(ESM::Dialogue()); + mStatic.back().mId = id; + mStatic.back().load(esm); + } + + template <> + void Store::load(ESM::ESMReader &esm, const std::string &id) { + mStatic.push_back(ESM::Script()); + mStatic.back().load(esm); + StringUtils::toLower(mStatic.back().mId); + } +}