mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
Error instead of crash when Source:setLooping is called on a queueable Source (thanks zorg)
--HG-- branch : minor
This commit is contained in:
@@ -244,7 +244,7 @@ int w_Source_isRelative(lua_State *L)
|
|||||||
int w_Source_setLooping(lua_State *L)
|
int w_Source_setLooping(lua_State *L)
|
||||||
{
|
{
|
||||||
Source *t = luax_checksource(L, 1);
|
Source *t = luax_checksource(L, 1);
|
||||||
t->setLooping(luax_toboolean(L, 2));
|
luax_catchexcept(L, [&](){ t->setLooping(luax_toboolean(L, 2)); });
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user