How to initialize a struct that extends array?

cleeezzz

The Undead Ranger.
Reaction score
268
JASS:
struct hi
    integer i
endstruct

private function hi2 takes nothing returns nothing
    local hi d = hi[1]
    set d.i = 1
endfunction


does not work because the struct is not initialized?
 

cleeezzz

The Undead Ranger.
Reaction score
268
thats what i thought, but it showed d.i = 0

EDIT: lol nvm,

JASS:
elseif d.ticks >= 0 then


shoulda been <= X_x
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top