summaryrefslogtreecommitdiff
path: root/apps/opencs/model/world/refidadapterimp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/opencs/model/world/refidadapterimp.cpp')
-rw-r--r--apps/opencs/model/world/refidadapterimp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/opencs/model/world/refidadapterimp.cpp b/apps/opencs/model/world/refidadapterimp.cpp
index c6179facb8..bdccab9cda 100644
--- a/apps/opencs/model/world/refidadapterimp.cpp
+++ b/apps/opencs/model/world/refidadapterimp.cpp
@@ -33,7 +33,7 @@ QVariant CSMWorld::PotionRefIdAdapter::getData(const RefIdColumn* column, const
data.getRecord(RefIdData::LocalIndex(index, UniversalId::Type_Potion)));
if (column == mAutoCalc)
- return record.get().mData.mAutoCalc != 0;
+ return record.get().mData.mFlags & ESM::Potion::Autocalc;
// to show nested tables in dialogue subview, see IdTree::hasChildren()
if (column == mColumns.mEffects)
@@ -51,7 +51,7 @@ void CSMWorld::PotionRefIdAdapter::setData(
ESM::Potion potion = record.get();
if (column == mAutoCalc)
- potion.mData.mAutoCalc = value.toInt();
+ potion.mData.mFlags = value.toBool();
else
{
InventoryRefIdAdapter<ESM::Potion>::setData(column, data, index, value);