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:
parent
5b58e7e1ff
commit
1cb8b3fc6b
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue