diff options
Diffstat (limited to 'pokemodr/models/ItemModel.cpp')
| -rw-r--r-- | pokemodr/models/ItemModel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pokemodr/models/ItemModel.cpp b/pokemodr/models/ItemModel.cpp index d1c698c1..c5bddcfa 100644 --- a/pokemodr/models/ItemModel.cpp +++ b/pokemodr/models/ItemModel.cpp @@ -62,7 +62,7 @@ QVariant ItemModel::data(int role) const int ItemModel::rowCount() const { - return static_cast<Item*>(m_object)->effectCount(); + return m_effects.size(); } bool ItemModel::setData(const QVariant& value, int role) |
