summaryrefslogtreecommitdiffstats
path: root/sigscript/ItemWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/ItemWrapper.cpp')
-rw-r--r--sigscript/ItemWrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sigscript/ItemWrapper.cpp b/sigscript/ItemWrapper.cpp
index 1fb400db..71e36149 100644
--- a/sigscript/ItemWrapper.cpp
+++ b/sigscript/ItemWrapper.cpp
@@ -51,8 +51,8 @@ Sigscript::ItemTypeWrapper* Sigscript::ItemWrapper::type()
int Sigscript::ItemWrapper::price() const
{
- if (value("price").canConvert<int>())
- return value("price").toInt();
+ if (hasValueOfType<int>("price"))
+ return valueOfType<int>("price");
return m_item->price();
}