Hey, can you tell me what I should do when JNGP compiles a struct allocater (untouched) to this:
//Generated allocator of Way
function rf__s__Way__allocate takes nothing returns nothing
local integer this=si__Way_F
if (this!=0) then
set si__Way_F=si__Way_V[this]
else
set si__Way_I=si__Way_I+1
set this=si__Way_I
endif
if (this>-1) then
call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,1000.,"Unable to allocate id for an object of type: Way")
set rf__return_integer= 0
return
endif
set s__Way_wayPoints[this]=(this-1)*8191
set s__Way_units[this]= null
set s__Way_ID[this]= 0
set s__Way_curwpID[this]= 0
set si__Way_V[this]=-1
set rf__return_integer= this
return
endfunction