Lua - fix one thing so you can break another.

git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@3913 387891d4-d844-0410-90c0-e4c51a9137d3
This commit is contained in:
wmcoolmon authored and niffiwan committed 2015-04-29 18:42:47 +10:00
1 parent a3ec50ee2c
commit f8f3b2c9e7
2 files changed
+5 -6

No files matched your search

+3 -6
View File
@@ -7738,12 +7738,9 @@ int ade_set_args(lua_State *L, char *fmt, ...)
lua_pushnumber(L, va_arg(vl, int));
break;
case 's':
{
//WMC - Don't know why I need the & on va_arg
//but whatever. As long as it works.
lua_pushstring(L, &va_arg(vl, char));
break;
}
//WMC - Isn't working with HookVar for some strange reason
lua_pushstring(L, va_arg(vl, char*));
break;
case 'u':
case 'v':
//WMC - Default upvalues, to reserve space for real ones