diff --git a/src/c_cvars.cpp b/src/c_cvars.cpp index 95da13374..5b33cc263 100644 --- a/src/c_cvars.cpp +++ b/src/c_cvars.cpp @@ -1541,8 +1541,7 @@ DEFINE_ACTION_FUNCTION(_CVar, FindCVar) { PARAM_PROLOGUE; PARAM_NAME(name); - PARAM_POINTER_DEF(plyr, player_t); - ACTION_RETURN_POINTER(GetCVar(plyr ? plyr->mo : nullptr, name)); + ACTION_RETURN_POINTER(FindCVar(name, nullptr)); } FBaseCVar *FindCVarSub (const char *var_name, int namelen) diff --git a/wadsrc/static/zscript/base.txt b/wadsrc/static/zscript/base.txt index 77d6fa26b..c62620b14 100644 --- a/wadsrc/static/zscript/base.txt +++ b/wadsrc/static/zscript/base.txt @@ -286,7 +286,7 @@ struct CVar native CVAR_Color, }; - native static CVar FindCVar(Name name, PlayerInfo player = null); + native static CVar FindCVar(Name name); native int GetInt(); native double GetFloat(); native String GetString();