Browse Source

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

Alex Szpakowski 7 years ago
parent
commit
613de97b58
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/audio/wrap_Source.cpp

+ 1 - 1
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;