summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-22 02:03:59 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-22 02:03:59 +0300
commit5133814218de74d57c7febadf61b3ab05216dc25 (patch)
tree60b88270c9a50ef333fefed38c805baab00429a1 /src/being/localplayer.cpp
parentcc7a39f467a49b2e91717739cb6e7c3c4b34a245 (diff)
downloadmv-5133814218de74d57c7febadf61b3ab05216dc25.tar.gz
mv-5133814218de74d57c7febadf61b3ab05216dc25.tar.bz2
mv-5133814218de74d57c7febadf61b3ab05216dc25.tar.xz
mv-5133814218de74d57c7febadf61b3ab05216dc25.zip
Remove default parameters from properties.h
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 135dce434..9cfdc4d82 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -1406,7 +1406,7 @@ void LocalPlayer::moveToHome()
else if (mMap != nullptr)
{
const std::map<std::string, Vector>::const_iterator iter =
- mHomes.find(mMap->getProperty("_realfilename"));
+ mHomes.find(mMap->getProperty("_realfilename", std::string()));
if (iter != mHomes.end())
{
@@ -1816,7 +1816,7 @@ void LocalPlayer::setHome()
if (specialLayer == nullptr)
return;
- const std::string key = mMap->getProperty("_realfilename");
+ const std::string key = mMap->getProperty("_realfilename", std::string());
Vector pos = mHomes[key];
if (mAction == BeingAction::SIT)
@@ -2676,7 +2676,7 @@ void LocalPlayer::updateNavigateList()
if (mMap != nullptr)
{
const std::map<std::string, Vector>::const_iterator iter =
- mHomes.find(mMap->getProperty("_realfilename"));
+ mHomes.find(mMap->getProperty("_realfilename", std::string()));
if (iter != mHomes.end())
{
@@ -2753,7 +2753,7 @@ void LocalPlayer::removeHome()
if (mMap == nullptr)
return;
- const std::string key = mMap->getProperty("_realfilename");
+ const std::string key = mMap->getProperty("_realfilename", std::string());
const std::map<std::string, Vector>::iterator iter = mHomes.find(key);
if (iter != mHomes.end())