Skip to content

Commit

Permalink
Merge pull request #185 from Hoikas/pfm-roundtrip
Browse files Browse the repository at this point in the history
Fix round-tripping plPythonFileMod through HSPlasma.
  • Loading branch information
zrax authored Aug 30, 2020
2 parents a08313a + 25075c2 commit afd9c46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/PRP/Modifier/plPythonFileMod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ void plPythonParameter::read(hsStream* S, plResManager* mgr)
case kSubtitle:
size = S->readInt();
if (size == 0) {
fStrValue = "";
fStrValue = ST::null;
return;
}
fStrValue = S->readStr(size);
fStrValue = S->readStr(size - 1);
S->readByte();
return;
case kNone:
return;
Expand Down

0 comments on commit afd9c46

Please sign in to comment.