0
0
Fork 0
mirror of https://github.com/DrBeef/Raze.git synced 2025-03-22 17:21:00 +00:00

Prevent SW crashing when saving game

it was trying to save the crosshair actor's "User" data, which it doesn't need to
This commit is contained in:
Simon 2023-02-20 20:22:07 +00:00
parent 5b58e7e1ff
commit 1cb8b3fc6b

View file

@ -1088,7 +1088,9 @@ void DSWActor::Serialize(FSerializer& arc)
("owner", ownerActor)
("texparam", texparam)
("texparam2", texparam2);
if (hasUser) arc("user", user); // only write if defined.
//Bit of a fiddle, but don't call this for the crosshair actor - seems to have solved the crashing
if (hasUser && (link_stat != STAT_CROSSHAIR)) arc("user", user); // only write if defined.
}
//---------------------------------------------------------------------------