dhewm3/neo/d3xp/script
Daniel Gibson 76a9fdcebe idInterpreter::Call(Sys)Event(): Fix passing integers
All that code is kinda obfuscated, but the integer passing was plain
wrong (if sizeof(int) != sizeof(intptr_t), esp. noticeable on
 Big Endian).
data[i] is used by Callbacks.cpp, and for everything but floats it's
passed directly as an argument (interpreted as either an integer or
a pointer to idVec3 or whatever).
So storing an int in there with `( *( int * )&data[ i ] ) = int(...)`
only sets the first 4 bytes of that intptr_t, which is 8 bytes on 64bit
machines. On Little Endian that just happens to work, on Big Endian
it's the wrong 4 bytes.
2024-10-31 03:18:33 +01:00
..
Script_Compiler.cpp Fix usage of invalid pointer in idCompiler::CompileFile() 2021-07-15 07:00:18 +02:00
Script_Compiler.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Script_Interpreter.cpp idInterpreter::Call(Sys)Event(): Fix passing integers 2024-10-31 03:18:33 +01:00
Script_Interpreter.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Script_Program.cpp Fix savegame-compatibility of scripts, increase BUILD_NUMBER 2021-02-21 06:05:47 +01:00
Script_Program.h Fix savegame-compatibility of scripts, increase BUILD_NUMBER 2021-02-21 06:05:47 +01:00
Script_Thread.cpp Fix -Wformat-security warnings - thanks James Addison! 2023-01-05 04:45:34 +01:00
Script_Thread.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00