From b52d77e8bfdabdba0afce0122bcc1cf26689add5 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Fri, 8 Oct 2004 19:18:41 +0000 Subject: [PATCH] Fixed big bug in executeForwards where float parameters were skipped and the stack might be messed up (thanks to BAILOPAN) --- amxmodx/CForward.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amxmodx/CForward.cpp b/amxmodx/CForward.cpp index 57260fdc..7c0fe2c0 100755 --- a/amxmodx/CForward.cpp +++ b/amxmodx/CForward.cpp @@ -494,7 +494,8 @@ cell executeForwards(int id, ...) REAL tmp = (REAL)va_arg(argptr, double); // floats get converted to doubles params[i] = *(cell*)&tmp; } - params[i] = (cell)va_arg(argptr, cell); + else + params[i] = (cell)va_arg(argptr, cell); } va_end(argptr); return g_forwards.executeForwards(id, params);