[ScriptError]: Syntax update (#798)

This commit is contained in:
Edo 2023-02-25 13:17:29 +01:00 committed by GitHub
parent f28c172176
commit 7b0909db8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -675,7 +675,7 @@ namespace Components
const auto c = *source; const auto c = *source;
++source; ++source;
*dest = c; *dest = c;
dest++; ++dest;
} }
} }
@ -724,7 +724,7 @@ namespace Components
auto* sourceBuf = static_cast<char*>(Game::Hunk_AllocateTempMemoryHigh(len + 1)); auto* sourceBuf = static_cast<char*>(Game::Hunk_AllocateTempMemoryHigh(len + 1));
Game::FS_Read(sourceBuf, len, f); Game::FS_Read(sourceBuf, len, f);
sourceBuf[len] = 0; sourceBuf[len] = '\0';
Game::FS_FCloseFile(f); Game::FS_FCloseFile(f);
Scr_AddSourceBufferInternal(extFilename, codePos, sourceBuf, len, true, archive); Scr_AddSourceBufferInternal(extFilename, codePos, sourceBuf, len, true, archive);