summaryrefslogtreecommitdiff
path: root/src/chat-server/guildmanager.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-03-05 18:46:29 +0000
committerDavid Athay <ko2fan@gmail.com>2008-03-05 18:46:29 +0000
commita65b4bd0a8e45895cc180fb5882734a87d55beeb (patch)
treeefac296acfe36e6d31446a8b8c37eaf9056afb21 /src/chat-server/guildmanager.cpp
parent5d5a572228cf4a8385db52a1624d31e47d93e408 (diff)
downloadmanaserv-a65b4bd0a8e45895cc180fb5882734a87d55beeb.tar.gz
manaserv-a65b4bd0a8e45895cc180fb5882734a87d55beeb.tar.bz2
manaserv-a65b4bd0a8e45895cc180fb5882734a87d55beeb.tar.xz
manaserv-a65b4bd0a8e45895cc180fb5882734a87d55beeb.zip
Fixed guild creation.
Diffstat (limited to 'src/chat-server/guildmanager.cpp')
-rw-r--r--src/chat-server/guildmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chat-server/guildmanager.cpp b/src/chat-server/guildmanager.cpp
index fc3580f1..2c669e27 100644
--- a/src/chat-server/guildmanager.cpp
+++ b/src/chat-server/guildmanager.cpp
@@ -40,7 +40,7 @@ GuildManager::~GuildManager()
mGuilds.clear();
}
-short GuildManager::createGuild(const std::string &name, const std::string &playerName)
+Guild* GuildManager::createGuild(const std::string &name, const std::string &playerName)
{
Guild *guild = new Guild(name);
// Add guild to db
@@ -51,7 +51,7 @@ short GuildManager::createGuild(const std::string &name, const std::string &play
mGuilds.push_back(guild);
addGuildMember(guild->getId(), playerName);
- return guild->getId();
+ return guild;
}
void GuildManager::removeGuild(short guildId)