Saving broken #3620
Comments
cybersphinx uploaded file |
vexed commented Odd, it is working for me in bugfixes. |
eisnerd commented I could confirm that yesterdays 3.1 branch crashes when trying to save after writing 8 bytes to .gam file |
dak180 changed _comment0 which not transferred by tractive |
tnmurphy@... commented This seems to relate to the use of std::string mapFileName in the NETPLAY struct. I get a crash in the copy constructor unless I define a non-inline copy constructor but then I get a crash in the destructor for the old string - didn't try making that non-inline too.
What fixes it for me is to use a C string. I will attach this in a patch file |
tnmurphy@... uploaded file patch to fix skirmish game save in head. |
Per commented Related bug #3636 |
Per Inge Mathisen changed status from |
Per Inge Mathisen changed resolution from `` to |
Per Inge Mathisen commented Do not use std::string in a memory structure that is memset().
|
Per Inge Mathisen commented Do not use std::string in a memory structure that is memset().
|
2 similar comments
Per Inge Mathisen commented Do not use std::string in a memory structure that is memset().
|
Per Inge Mathisen commented Do not use std::string in a memory structure that is memset().
|
resolution_fixed
type_bug
| by cybersphinxSaving either skirmish or campaign games is broken, crashes in game.cpp:3897 (master), saveGame.sNetPlay = NetPlay. Reverting 134c51c8902bf80c699d29a8db1c71fea9a4e85d helps.
Issue migrated from trac:3620 at 2022-04-16 09:58:13 -0700
The text was updated successfully, but these errors were encountered: