Skip to content

Commit 3508fdf

Browse files
authored
fix: crash caused by AddEntityIOEvent (#969)
1 parent 741d6a3 commit 3508fdf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/core/managers/entity_manager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ inline void (*CEntitySystem_AddEntityIOEvent)(CEntitySystem* pEntitySystem,
172172
variant_t* value,
173173
float delay,
174174
int nOutputID,
175+
void*,
175176
void*);
176177

177178
typedef uint32 SoundEventGuid_t;

src/scripting/natives/natives_entities.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ void AddEntityIOEvent(ScriptContext& script_context)
254254
int outputID = script_context.GetArgument<int>(6);
255255

256256
variant_t _value = variant_t(value);
257-
CEntitySystem_AddEntityIOEvent(GameEntitySystem(), pTarget, pInputName, pActivator, pCaller, &_value, delay, outputID, nullptr);
257+
CEntitySystem_AddEntityIOEvent(GameEntitySystem(), pTarget, pInputName, pActivator, pCaller, &_value, delay, outputID, nullptr,
258+
nullptr);
258259
}
259260

260261
SoundEventGuid_t EmitSoundFilter(ScriptContext& script_context)

0 commit comments

Comments
 (0)