Core/Guilds: Adjust size of guildMap by 1 element, not 512 (fix by machiavelli)
--HG-- branch : trunk
This commit is contained in:
@@ -360,7 +360,7 @@ void ObjectMgr::AddGuild(Guild* pGuild)
|
|||||||
// Allocate space if necessary
|
// Allocate space if necessary
|
||||||
if (guildId >= uint32(mGuildMap.size()))
|
if (guildId >= uint32(mGuildMap.size()))
|
||||||
// Reserve a bit more space than necessary
|
// Reserve a bit more space than necessary
|
||||||
mGuildMap.resize(guildId + 512, NULL);
|
mGuildMap.resize(guildId+1);
|
||||||
mGuildMap[guildId] = pGuild;
|
mGuildMap[guildId] = pGuild;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user