Skip to content

Commit

Permalink
Replace hsRAMStream::Truncate call with Reset to match new behavior
Browse files Browse the repository at this point in the history
The previous implementation of hsRAMStream::Truncate incorrectly deleted
the entire stream data, not just starting at the current seek position.
  • Loading branch information
dgelessus committed Jul 22, 2023
1 parent cd89ad1 commit 9056429
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ void plCreatableListHelper::Write( hsStream* s, hsResMgr* mgr )
}
}

ram.Truncate();
ram.Reset();

ram.WriteByte(fFlags);
ram.WriteLE32(bufSz);
Expand Down

0 comments on commit 9056429

Please sign in to comment.