return nil when remove removes nothing
This commit is contained in:
@@ -176,9 +176,7 @@ public class TableLib extends LFunction {
|
|||||||
LTable table = vm.totable(2);
|
LTable table = vm.totable(2);
|
||||||
int pos = (n>=3? vm.tointeger(3): 0);
|
int pos = (n>=3? vm.tointeger(3): 0);
|
||||||
vm.resettop();
|
vm.resettop();
|
||||||
LValue v = table.luaRemovePos(pos);
|
vm.pushlvalue( table.luaRemovePos(pos) );
|
||||||
if ( ! v.isNil() )
|
|
||||||
vm.pushlvalue( v );
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user