summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-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())