- refactored sound user data to be easier to serialize.

This commit is contained in:
Christoph Oelckers 2020-02-23 18:30:48 +01:00
parent 83adb81756
commit 3aea6d1fad
12 changed files with 60 additions and 55 deletions

View file

@ -1479,7 +1479,7 @@ FSerializer &Serialize(FSerializer &arc, const char *key, FSoundID &sid, FSoundI
{
#if 1
int id = sid;
Serialize(arc, key, sid, def);
Serialize(arc, key, id, nullptr);
if (arc.isReading()) sid = FSoundID(id);
#else
if (arc.isWriting())