Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit e69da3b

Browse files
committed
Updates after feedback #1 on this branch
1 parent fe81e64 commit e69da3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

engine/src/stack3.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ IO_stat MCStack::load_stack(IO_handle stream, const char *version)
172172
// stack title will be UTF-8 already.
173173
if (strncmp(version, "5.5", 3) >= 0)
174174
{
175-
if ((stat = IO_read_stringref(title, stream, true)) != IO_NORMAL)
175+
if ((stat = IO_read_stringref(title, stream, false)) != IO_NORMAL)
176176
return stat;
177177
}
178178
else
@@ -218,7 +218,7 @@ IO_stat MCStack::load_stack(IO_handle stream, const char *version)
218218
if (maxwidth == 1280 && maxheight == 1024)
219219
maxwidth = maxheight = MAXUINT2;
220220
}
221-
if ((stat = IO_read_stringref(externalfiles, stream, true)) != IO_NORMAL)
221+
if ((stat = IO_read_stringref(externalfiles, stream, false)) != IO_NORMAL)
222222
return stat;
223223
if (strncmp(version, "1.3", 3) > 0)
224224
{
@@ -555,7 +555,7 @@ IO_stat MCStack::save_stack(IO_handle stream, uint4 p_part, bool p_force_ext)
555555
// write out UTF-8 directly.
556556
if (MCstackfileversion >= 5500)
557557
{
558-
if ((stat = IO_write_stringref(title, stream, true)) != IO_NORMAL)
558+
if ((stat = IO_write_stringref_utf8(title, stream)) != IO_NORMAL)
559559
return stat;
560560
}
561561
else

0 commit comments

Comments
 (0)