summaryrefslogtreecommitdiff
path: root/src/guild.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guild.cpp')
-rw-r--r--src/guild.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/guild.cpp b/src/guild.cpp
index 12fbe78a4..6b0e5ec2d 100644
--- a/src/guild.cpp
+++ b/src/guild.cpp
@@ -98,8 +98,8 @@ Guild::~Guild()
GuildMember *Guild::addMember(const int accountId, const int charId,
const std::string &name)
{
- GuildMember *m;
- if ((m = getMember(accountId, charId)))
+ GuildMember *m = getMember(accountId, charId);
+ if (m)
return m;
m = new GuildMember(this, accountId, charId, name);
@@ -111,8 +111,8 @@ GuildMember *Guild::addMember(const int accountId, const int charId,
GuildMember *Guild::addMember(const std::string &name)
{
- GuildMember *m;
- if ((m = getMember(name)))
+ GuildMember *m = getMember(name);
+ if (m)
return m;
m = new GuildMember(this, name);