COMMON: Increase Stream pos, seek, size from int32 to int64

This commit is contained in:
Paul Gilbert 2021-07-03 20:30:41 -07:00
parent 956f53fd22
commit 005561d305
104 changed files with 291 additions and 276 deletions

View file

@ -1876,7 +1876,7 @@ void ScriptLife::processLifeScript(int32 actorIdx) {
if (scriptOpcode < ARRAYSIZE(function_map)) {
end = function_map[scriptOpcode].function(_engine, ctx);
} else {
error("Actor %d with wrong offset/opcode - Offset: %d (opcode: %i)", actorIdx, ctx.stream.pos() - 1, scriptOpcode);
error("Actor %d with wrong offset/opcode - Offset: %d (opcode: %i)", actorIdx, (int)ctx.stream.pos() - 1, scriptOpcode);
}
if (end < 0) {