Fix Source:queue to show the correct argument in the error message when an invalid data parameter is passed in.

This commit is contained in:
Alex Szpakowski
2018-04-02 16:34:48 -03:00
parent cfa30167ca
commit 613de97b58
+1 -1
View File
@@ -564,7 +564,7 @@ int w_Source_queue(lua_State *L)
});
}
else
return luax_typerror(L, 1, "Sound Data or lightuserdata");
return luax_typerror(L, 2, "SoundData or lightuserdata");
luax_pushboolean(L, success);
return 1;