summaryrefslogtreecommitdiff
path: root/src/guild.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guild.cpp')
-rw-r--r--src/guild.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/guild.cpp b/src/guild.cpp
index c7ad34c30..09ff80cc7 100644
--- a/src/guild.cpp
+++ b/src/guild.cpp
@@ -235,9 +235,12 @@ void Guild::removeFromMembers()
const MemberList::const_iterator itr_end = mMembers.end();
while (itr != itr_end)
{
- Being *const b = actorSpriteManager->findBeing((*itr)->getID());
- if (b)
- b->removeGuild(getId());
+ if (*itr)
+ {
+ Being *const b = actorSpriteManager->findBeing((*itr)->getID());
+ if (b)
+ b->removeGuild(mId);
+ }
++itr;
}
}
@@ -319,7 +322,7 @@ void Guild::getNames(StringVect &names) const
}
}
-void Guild::addPos(const int id, std::string name)
+void Guild::addPos(const int id, const std::string &name)
{
mPositions[id] = name;
}