// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals integer Test_test_x=0 integer array Test_B_nextFree integer Test_B_firstFree=0 integer array Test_B_typeId integer array Test_B_y endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function destroyA takes integer this0 returns nothing local integer this_1 = this0 local integer this_2 local integer obj set Test_test_x = Test_test_x + Test_B_y[this_1] set this_2 = this_1 set Test_test_x = Test_test_x * Test_B_y[this_2] set obj = this0 if Test_B_typeId[obj] == 0 then else set Test_B_nextFree[Test_B_firstFree] = obj set Test_B_firstFree = Test_B_firstFree + 1 set Test_B_typeId[obj] = 0 if Test_B_nextFree[Test_B_firstFree - 1] == 42 then call testSuccess() endif endif endfunction function init_Test takes nothing returns nothing set Test_test_x = 0 set Test_B_firstFree = 0 set Test_B_typeId[42] = 1 call destroyA(42) endfunction function main takes nothing returns nothing call initGlobals() call init_Test() endfunction function config takes nothing returns nothing endfunction