diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-29 14:31:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-29 14:31:02 +0300 |
commit | ab9e0ea04e66e3d3866e5bad678ffc4177a11781 (patch) | |
tree | 273918c1c33cda9d7b74fa6b408b817cf1e8c5bd /src/gui/popupmenu.h | |
parent | 3ef886b241c5654bf21e5326d1299ccde161b228 (diff) | |
download | manaplus-ab9e0ea04e66e3d3866e5bad678ffc4177a11781.tar.gz manaplus-ab9e0ea04e66e3d3866e5bad678ffc4177a11781.tar.bz2 manaplus-ab9e0ea04e66e3d3866e5bad678ffc4177a11781.tar.xz manaplus-ab9e0ea04e66e3d3866e5bad678ffc4177a11781.zip |
fix crash if open rename map item dialog and walk to other map.
Diffstat (limited to 'src/gui/popupmenu.h')
-rw-r--r-- | src/gui/popupmenu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/popupmenu.h b/src/gui/popupmenu.h index 069fb466a..3865c2bd3 100644 --- a/src/gui/popupmenu.h +++ b/src/gui/popupmenu.h @@ -56,14 +56,14 @@ class RenameListener final : public gcn::ActionListener void action(const gcn::ActionEvent &event) override; - void setMapItem(MapItem* mapItem) - { mMapItem = mapItem; } + void setMapItem(MapItem *const mapItem); void setDialog(TextDialog *dialog) { mDialog = dialog; } private: - MapItem *mMapItem; + int mMapItemX; + int mMapItemY; TextDialog *mDialog; }; |