From 613de97b58f94dfe3fc408588648bc157a5c9f3c Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Mon, 2 Apr 2018 16:34:48 -0300 Subject: [PATCH] Fix Source:queue to show the correct argument in the error message when an invalid data parameter is passed in. --- src/modules/audio/wrap_Source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/audio/wrap_Source.cpp b/src/modules/audio/wrap_Source.cpp index 6a1208174..273b48f09 100644 --- a/src/modules/audio/wrap_Source.cpp +++ b/src/modules/audio/wrap_Source.cpp @@ -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;