// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1367 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 main takes nothing returns nothing local integer this0 local integer this_1 local integer this_2 local integer obj call initGlobals() set Test_B_typeId[42] = 1 set this0 = 42 set this_1 = this0 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 config takes nothing returns nothing endfunction