mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-21 20:21:19 +00:00
Use correct idStr::Append() while saving event strings
Used the wrong Append() in fad99572, we want to stop at a terminating null char.
This commit is contained in:
parent
92023f44ca
commit
851bd5901d
2 changed files with 2 additions and 2 deletions
|
@ -786,7 +786,7 @@ void idEvent::Save( idSaveGame *savefile ) {
|
|||
break;
|
||||
case D_EVENT_STRING :
|
||||
s.Clear();
|
||||
s.Append(reinterpret_cast<char *>(dataPtr), MAX_STRING_LEN);
|
||||
s.Append(reinterpret_cast<char *>(dataPtr));
|
||||
savefile->WriteString(s);
|
||||
size += MAX_STRING_LEN;
|
||||
break;
|
||||
|
|
|
@ -652,7 +652,7 @@ void idEvent::Save( idSaveGame *savefile ) {
|
|||
break;
|
||||
case D_EVENT_STRING :
|
||||
s.Clear();
|
||||
s.Append(reinterpret_cast<char *>(dataPtr), MAX_STRING_LEN);
|
||||
s.Append(reinterpret_cast<char *>(dataPtr));
|
||||
savefile->WriteString(s);
|
||||
size += MAX_STRING_LEN;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue