mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Remove references to old physics callbacks, fixes #139
This commit is contained in:
@@ -153,12 +153,16 @@ namespace box2d
|
||||
switch(n)
|
||||
{
|
||||
case 4:
|
||||
if (result.ref) delete result.ref;
|
||||
result.ref = luax_refif(L, LUA_TFUNCTION);
|
||||
case 3:
|
||||
if (remove.ref) delete remove.ref;
|
||||
remove.ref = luax_refif(L, LUA_TFUNCTION);
|
||||
case 2:
|
||||
if (persist.ref) delete persist.ref;
|
||||
persist.ref = luax_refif(L, LUA_TFUNCTION);
|
||||
case 1:
|
||||
if (add.ref) delete add.ref;
|
||||
add.ref = luax_refif(L, LUA_TFUNCTION);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user