From ab9e0ea04e66e3d3866e5bad678ffc4177a11781 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Sep 2013 14:31:02 +0300 Subject: fix crash if open rename map item dialog and walk to other map. --- src/gui/popupmenu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/popupmenu.h') 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; }; -- cgit v1.2.3-70-g09d2