Skip to content

Commit

Permalink
Fix typo resulting in a crash on some systems
Browse files Browse the repository at this point in the history
See http://www.cplusplus.com/reference/vector/vector/reserve/ for reference

Thanks to Grz3s for providing the crash-log
  • Loading branch information
Schmoozerd committed Apr 20, 2014
1 parent 4026eb0 commit 9325f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/MiscHandler.cpp
Expand Up @@ -1533,7 +1533,7 @@ void WorldSession::HandleRequestHotfix(WorldPacket& recv_data)
count = recv_data.ReadBits(23);

std::vector<ObjectGuid> guids;
guids.reserve(count);
guids.resize(count);

for (uint32 i = 0; i < count; ++i)
recv_data.ReadGuidMask<0, 4, 7, 2, 5, 3, 6, 1>(guids[i]);
Expand Down

0 comments on commit 9325f6b

Please sign in to comment.