diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 6797680f4..a8036fd34 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,5 @@ October 28, 2008 (Changes by Graf Zahl) +- Fixed: The state parser counted one parameter too many for a varargs function. - Fixed: FStateExpressions could copy unresolved default parameter expressions. When these were resolved and changed later all copied pointers pointed to invalid data. diff --git a/src/thingdef/thingdef_states.cpp b/src/thingdef/thingdef_states.cpp index a20edd461..82c3a4422 100644 --- a/src/thingdef/thingdef_states.cpp +++ b/src/thingdef/thingdef_states.cpp @@ -347,7 +347,6 @@ do_stop: if (varargs) { - varargcount++; paramindex++; } else if (afd->defaultparameterindex > -1)