summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/gamehandler.cpp2
-rw-r--r--src/net/ea/gamehandler.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp
index 1cb105204..ededed886 100644
--- a/src/net/ea/gamehandler.cpp
+++ b/src/net/ea/gamehandler.cpp
@@ -62,7 +62,7 @@ void GameHandler::who()
{
}
-void GameHandler::setMap(const std::string map)
+void GameHandler::setMap(const std::string &map)
{
mMap = map.substr(0, map.rfind("."));
}
diff --git a/src/net/ea/gamehandler.h b/src/net/ea/gamehandler.h
index de7a1623d..ba68c710e 100644
--- a/src/net/ea/gamehandler.h
+++ b/src/net/ea/gamehandler.h
@@ -45,7 +45,7 @@ class GameHandler : public Net::GameHandler, public Listener
virtual bool removeDeadBeings() const
{ return true; }
- virtual void setMap(const std::string map);
+ virtual void setMap(const std::string &map);
virtual bool canUseMagicBar() const
{ return true; }