mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Error when trying to create a queueable source with newSource (issue #1450)
This commit is contained in:
@@ -52,6 +52,9 @@ int w_newSource(lua_State *L)
|
||||
const char *stypestr = luaL_checkstring(L, 2);
|
||||
if (stypestr && !Source::getConstant(stypestr, stype))
|
||||
return luax_enumerror(L, "source type", Source::getConstants(stype), stypestr);
|
||||
|
||||
if (stype == Source::TYPE_QUEUE)
|
||||
return luaL_error(L, "Cannot create queueable sources using newSource. Use newQueueableSource instead.");
|
||||
}
|
||||
|
||||
if (lua_isstring(L, 1) || luax_istype(L, 1, love::filesystem::File::type) || luax_istype(L, 1, love::filesystem::FileData::type))
|
||||
|
||||
Reference in New Issue
Block a user