Fix dangling pointer on temporary pack of player file on join (#706)

I hate StdStrBuf. It's just close enough to any sane string class that you think
it does reasonable things, then when you don't look it will turn around and stab
you in the back with a rusty fork.
scancodes-fix
Nicolas Hake 2012-02-03 14:36:17 +01:00
parent 7d0866ffab
commit f3ae992f33
1 changed files with 1 additions and 1 deletions

View File

@ -680,7 +680,7 @@ C4ControlJoinPlayer::C4ControlJoinPlayer(const char *szFilename, int32_t iAtClie
MakeTempFilename(&filename_buf);
if (C4Group_PackDirectoryTo(filename.getData(), filename_buf.getData()))
{
filename = filename_buf;
filename.Take(filename_buf);
file_is_temp = true;
}
else