summaryrefslogtreecommitdiffstats
path: root/sigscript/StoreWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/StoreWrapper.cpp')
-rw-r--r--sigscript/StoreWrapper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sigscript/StoreWrapper.cpp b/sigscript/StoreWrapper.cpp
index 85d6b580..6d39513e 100644
--- a/sigscript/StoreWrapper.cpp
+++ b/sigscript/StoreWrapper.cpp
@@ -19,12 +19,12 @@
#include "StoreWrapper.h"
// Sigscript includes
-#include "SigmodWrapper.h"
+#include "GameWrapper.h"
// Sigmod includes
#include <sigmod/Store.h>
-Sigscript::StoreWrapper* Sigscript::StoreWrapper::create(const Sigmod::Store* store, SigmodWrapper* parent)
+Sigscript::StoreWrapper* Sigscript::StoreWrapper::create(const Sigmod::Store* store, GameWrapper* parent)
{
Signature sig = Signature(parent, Subsignature(store->className(), store->id()));
if (!m_instances.contains(sig))
@@ -32,7 +32,7 @@ Sigscript::StoreWrapper* Sigscript::StoreWrapper::create(const Sigmod::Store* st
return qobject_cast<StoreWrapper*>(m_instances[sig]);
}
-Sigscript::StoreWrapper::StoreWrapper(const Sigmod::Store* store, SigmodWrapper* parent) :
+Sigscript::StoreWrapper::StoreWrapper(const Sigmod::Store* store, GameWrapper* parent) :
ObjectWrapper(store, parent),
m_store(store)
{
@@ -48,6 +48,6 @@ QList<Sigscript::ItemWrapper*> Sigscript::StoreWrapper::items()
QList<int> itemIds = m_store->item();
QList<ItemWrapper*> items;
foreach (int id, itemIds)
- items.append(sigmod()->item(id));
+ items.append(game()->item(id));
return items;
}