wierd compile error in struct method, + rep for help

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
heres the error im getting
JASS:
struct example
    unit node

    some method
        call KillUnit(this.node) //error
        call KillUnit(this.node) //no error
    endmethod
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
i dont see why, it was called in the same method using the same variables and i checked the variable types, 1 worked but 1 did not, i eventually went another route, [ljass]call SetUnitState(this.node, UNIT_STATE_LIFE, 0.0)[/ljass] <- freehand probably got an argument wrong, but ya it was just meant to destroy the unit so it doesnt matter how it happened, either way thats a wierd ass bug

EDIT: this bug was due to a variable error in another line in the same loop, i had .base (the unit saved in the .baseInteger instance) rather than .baseInteger (the allocated instance for the base of that linked list)

apparently this is a bug with the syntax checker where it says it is the first line of the loop rather than the line it is actually in when referencing an incorrect variable type
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top