summaryrefslogtreecommitdiff
path: root/src/account-server/dalstorage.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/account-server/dalstorage.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/account-server/dalstorage.cpp')
-rw-r--r--src/account-server/dalstorage.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/account-server/dalstorage.cpp b/src/account-server/dalstorage.cpp
index 304a18bf..72d1d899 100644
--- a/src/account-server/dalstorage.cpp
+++ b/src/account-server/dalstorage.cpp
@@ -397,6 +397,7 @@ Character *DALStorage::getCharacter(int id, Account *owner)
Character *DALStorage::getCharacter(const std::string &name)
{
// TODO: Get character, this most likely needs to find the account first.
+ return NULL;
}
@@ -1089,8 +1090,11 @@ std::list<Guild*> DALStorage::getGuildList()
for (unsigned int j = 0; j < memberInfo.rows(); ++j)
{
Character *character = getCharacter(memberInfo(j,0));
- character->addGuild((*itr)->getName());
- (*itr)->addMember(character->getName());
+ if (character)
+ {
+ character->addGuild((*itr)->getName());
+ (*itr)->addMember(character->getName());
+ }
}
}
}