mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-31 13:40:38 +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
239b165798
commit
57dc097fb0
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