Skip to content
Permalink
Browse files

Re-add float cast on TF2_AddCondition param (fixes #1013). (#1016)

Broken by ArgScuffer
  • Loading branch information...
psychonic committed May 14, 2019
1 parent d799059 commit 05b3fc0fb9f5dc449c6367479ec3d68ed4409c07
Showing with 1 addition and 1 deletion.
  1. +1 −1 extensions/tf2/natives.cpp
@@ -245,7 +245,7 @@ cell_t TF2_AddCondition(IPluginContext *pContext, const cell_t *params)
}

void *obj = (void *)((uint8_t *)pEntity + playerSharedOffset->actual_offset);
ArgBuffer<void*, int, float, CBaseEntity*> vstk(obj, params[2], params[3], pInflictor);
ArgBuffer<void*, int, float, CBaseEntity*> vstk(obj, params[2], sp_ctof(params[3]), pInflictor);

pWrapper->Execute(vstk, nullptr);
return 1;

0 comments on commit 05b3fc0

Please sign in to comment.
You can’t perform that action at this time.