mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed: argument count passed to the OSD system was +1 than it expected
This commit is contained in:
parent
5ea5d87664
commit
143c8be84d
1 changed files with 1 additions and 1 deletions
|
@ -1044,7 +1044,7 @@ int OSD_RegisterFunction(const char* pszName, const char* pszDesc, int (*func)(o
|
|||
auto callback = [nname, pszDesc, func](FCommandLine& args, void *, int key)
|
||||
{
|
||||
if (args.argc() > 0) args.operator[](0);
|
||||
osdfuncparm_t param = { args.argc(), nname.GetChars(), (const char**)args._argv + 1, args.cmd };
|
||||
osdfuncparm_t param = { args.argc() - 1, nname.GetChars(), (const char**)args._argv + 1, args.cmd };
|
||||
if (func(¶m) != OSDCMD_OK)
|
||||
{
|
||||
Printf("%s\n", pszDesc);
|
||||
|
|
Loading…
Reference in a new issue