diff options
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 3 | ||||
-rw-r--r-- | src/gui/popups/popupmenu.h | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index f151eae01..ce96d2abd 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -2271,7 +2271,8 @@ void PopupMenu::showAttackMonsterPopup(const int x, const int y, showPopup(x, y); } -void PopupMenu::showPickupItemPopup(const int x, const int y, std::string name) +void PopupMenu::showPickupItemPopup(const int x, const int y, + const std::string &name) { if (!player_node || !actorSpriteManager) return; diff --git a/src/gui/popups/popupmenu.h b/src/gui/popups/popupmenu.h index 4bb7e2e04..4c1a61aff 100644 --- a/src/gui/popups/popupmenu.h +++ b/src/gui/popups/popupmenu.h @@ -151,10 +151,12 @@ class PopupMenu final : public Popup, public LinkHandler void showSpellPopup(const int x, const int y, TextCommand *const cmd); - void showAttackMonsterPopup(int x, int y, const std::string &name, - int type); + void showAttackMonsterPopup(const int x, const int y, + const std::string &name, + const int type); - void showPickupItemPopup(int x, int y, std::string name); + void showPickupItemPopup(const int x, const int y, + const std::string &name); void showUndressPopup(const int x, const int y, const Being *const being, |