| 09-02-2009, 08:30 PM | #1 |
JASS:struct Way group units = null private static method addWay takes thistype wy returns nothing endmethod public static method create takes nothing returns Way local thistype wy = thistype.allocate() call thistype.addWay(wy) set wy.units = CreateGroup() return wy endmethod endstruct compiles to JASS://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 WHAT THE FUCK?^^ |
| 09-02-2009, 09:25 PM | #2 |
I'm guessing it's the return fixer thing in the previous version of jasshelper. Make sure you download the latest version of jasshelper. That the fuck :D |
| 09-02-2009, 10:30 PM | #3 |
Still present. |
