summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-27 22:30:19 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-27 22:30:19 +0000
commitd61fdaf1932724f86a68484c4a05195ca270646e (patch)
treec5b9fb13007679401ed0b0937660fac491b69a5c /src/gui/popupmenu.cpp
parent88b3f92061c703fdf6cf0f970684fb77de6d8795 (diff)
downloadmana-d61fdaf1932724f86a68484c4a05195ca270646e.tar.gz
mana-d61fdaf1932724f86a68484c4a05195ca270646e.tar.bz2
mana-d61fdaf1932724f86a68484c4a05195ca270646e.tar.xz
mana-d61fdaf1932724f86a68484c4a05195ca270646e.zip
Removed useless yet costly dynamic casts.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index c7c77ef4..cc764d35 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -124,7 +124,7 @@ void PopupMenu::handleLink(const std::string& link)
mBeing->getType() == Being::NPC &&
current_npc == 0)
{
- dynamic_cast<NPC*>(mBeing)->talk();
+ static_cast<NPC*>(mBeing)->talk();
}
// Trade action