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