fixed experience saver stack corruption
This commit is contained in:
parent
0433f50f04
commit
8b77859fab
1 changed files with 2 additions and 2 deletions
|
|
@ -911,7 +911,7 @@ void Waypoint::InitExperienceTab (void)
|
|||
{
|
||||
if (header.fileVersion == FV_EXPERIENCE && header.pointNumber == g_numWaypoints)
|
||||
{
|
||||
ExperienceSave *experienceLoad = new ExperienceSave[g_numWaypoints * g_numWaypoints];
|
||||
ExperienceSave *experienceLoad = new ExperienceSave[g_numWaypoints * g_numWaypoints * sizeof (ExperienceSave)];
|
||||
|
||||
Compressor::Uncompress (FormatBuffer ("%slearned/%s.exp", GetDataDir (), engine.GetMapName ()), sizeof (ExtensionHeader), (unsigned char *)experienceLoad, g_numWaypoints * g_numWaypoints * sizeof (ExperienceSave));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue