mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Automatically deduce the type in luax_pushtype, if possible
--HG-- branch : dynamiccore2
This commit is contained in:
@@ -45,7 +45,7 @@ int w_newVideoStream(lua_State *L)
|
||||
stream = instance()->newVideoStream(file);
|
||||
});
|
||||
|
||||
luax_pushtype(L, VideoStream::type, stream);
|
||||
luax_pushtype(L, stream);
|
||||
stream->release();
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user