diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-01 20:44:32 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-01 20:44:32 -0500 |
| commit | 1430a9e2b52109f3f57cfa7a9bb2f68e0dda1365 (patch) | |
| tree | 4e577a25fadedb054e58921a1ced00941d488c90 /sigmodr/widgets/ItemUI.cpp | |
| parent | 4ed55e72070115125732f5125d3da8efd09ffb2b (diff) | |
Made the rest of the widgets use pimpl
Diffstat (limited to 'sigmodr/widgets/ItemUI.cpp')
| -rw-r--r-- | sigmodr/widgets/ItemUI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sigmodr/widgets/ItemUI.cpp b/sigmodr/widgets/ItemUI.cpp index 26234204..23284975 100644 --- a/sigmodr/widgets/ItemUI.cpp +++ b/sigmodr/widgets/ItemUI.cpp @@ -133,7 +133,7 @@ void ItemUI::Private::typeChanged(const int type) { if (0 <= type) { - const ItemType* itemType = m_item->game()->itemTypeById(m_item->type()); + const ItemType* itemType = m_item->game()->itemType(type); m_item->setType(itemType->id()); ui_weight->setMaximum(itemType->maxWeight()); } |
