summaryrefslogtreecommitdiffstats
path: root/sigscript/ItemWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/ItemWrapper.cpp')
-rw-r--r--sigscript/ItemWrapper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sigscript/ItemWrapper.cpp b/sigscript/ItemWrapper.cpp
index 72c711db..54290cba 100644
--- a/sigscript/ItemWrapper.cpp
+++ b/sigscript/ItemWrapper.cpp
@@ -19,12 +19,12 @@
#include "ItemWrapper.h"
// Sigscript includes
-#include "SigmodWrapper.h"
+#include "GameWrapper.h"
// Sigmod includes
#include <sigmod/Item.h>
-Sigscript::ItemWrapper* Sigscript::ItemWrapper::create(const Sigmod::Item* item, SigmodWrapper* parent)
+Sigscript::ItemWrapper* Sigscript::ItemWrapper::create(const Sigmod::Item* item, GameWrapper* parent)
{
Signature sig = Signature(parent, Subsignature(item->className(), item->id()));
if (!m_instances.contains(sig))
@@ -32,7 +32,7 @@ Sigscript::ItemWrapper* Sigscript::ItemWrapper::create(const Sigmod::Item* item,
return qobject_cast<ItemWrapper*>(m_instances[sig]);
}
-Sigscript::ItemWrapper::ItemWrapper(const Sigmod::Item* item, SigmodWrapper* parent) :
+Sigscript::ItemWrapper::ItemWrapper(const Sigmod::Item* item, GameWrapper* parent) :
ObjectWrapper(item, parent),
m_item(item)
{
@@ -50,7 +50,7 @@ bool Sigscript::ItemWrapper::sellable() const
Sigscript::ItemTypeWrapper* Sigscript::ItemWrapper::type()
{
- return sigmod()->itemType(m_item->type());
+ return game()->itemType(m_item->type());
}
int Sigscript::ItemWrapper::price() const