diff --git a/neo/Prey/game_anim.cpp b/neo/Prey/game_anim.cpp index 6e237dc6..5c5fa12c 100644 --- a/neo/Prey/game_anim.cpp +++ b/neo/Prey/game_anim.cpp @@ -151,7 +151,7 @@ bool hhAnim::CallFrameCommandsExtra( const frameCommand_t &command, idEntity *en switch( command.type ) { case FC_EVENT_ARGS: { if ( command.function && command.parmList && command.function->eventdef ) { - ent->ProcessEvent( command.function->eventdef, (int)(intptr_t)command.parmList ); + ent->ProcessEvent( command.function->eventdef, (intptr_t)command.parmList ); } return( true ); } diff --git a/neo/game/gamesys/Class.h b/neo/game/gamesys/Class.h index acdfe61c..446bcfa6 100644 --- a/neo/game/gamesys/Class.h +++ b/neo/game/gamesys/Class.h @@ -69,7 +69,7 @@ class idEventArg { idEventArg( const char *data ) { type = D_EVENT_STRING; value = reinterpret_cast( data ); }; idEventArg( const class idEntity *data ) { type = D_EVENT_ENTITY; value = reinterpret_cast( data ); }; idEventArg( const struct trace_s *data ) { type = D_EVENT_TRACE; value = reinterpret_cast( data ); }; -#if defined(__x86_64__) || defined(_M_X64) +#if defined(__x86_64__) || defined(_M_X64) || defined (__aarch64__) || defined (_M_ARM64) idEventArg( intptr_t data ) { type = D_EVENT_INTPTR; value = data; }; #endif };