mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
Fix Channel:push and other functions that accept love objects and store them in Variants internally. Cleaned up Variant code a bit.
--HG-- branch : minor
This commit is contained in:
@@ -74,7 +74,8 @@ int w_wait(lua_State *L)
|
||||
|
||||
int w_push(lua_State *L)
|
||||
{
|
||||
StrongRef<Message> m(Message::fromLua(L, 1), Acquire::NORETAIN);
|
||||
StrongRef<Message> m;
|
||||
luax_catchexcept(L, [&]() { m.set(Message::fromLua(L, 1), Acquire::NORETAIN); });
|
||||
|
||||
luax_pushboolean(L, m.get() != nullptr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user