mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user