Remove references to old physics callbacks, fixes #139

This commit is contained in:
Bart van Strien
2010-12-18 12:38:29 +01:00
parent cb1efac715
commit c0789b1da3
+4
View File
@@ -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);
}