Core/Guilds: Adjust size of guildMap by 1 element, not 512 (fix by machiavelli)

--HG--
branch : trunk
This commit is contained in:
click
2010-10-22 21:07:11 +02:00
parent 4ab3b63646
commit de0a8f9777
+1 -1
View File
@@ -360,7 +360,7 @@ void ObjectMgr::AddGuild(Guild* pGuild)
// Allocate space if necessary
if (guildId >= uint32(mGuildMap.size()))
// Reserve a bit more space than necessary
mGuildMap.resize(guildId + 512, NULL);
mGuildMap.resize(guildId+1);
mGuildMap[guildId] = pGuild;
}