mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Merge default into minor
--HG-- branch : minor
This commit is contained in:
@@ -118,7 +118,7 @@ Reference *luax_refif(lua_State *L, int type)
|
||||
// Create a reference only if the test succeeds.
|
||||
if (lua_type(L, -1) == type)
|
||||
r = new Reference(L);
|
||||
else // Pop the value even if it fails (but also if it succeeds).
|
||||
else // Pop the value manually if it fails (done by Reference if it succeeds).
|
||||
lua_pop(L, 1);
|
||||
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user