- Joined
- Jan 26, 2007
- Messages
- 4,789
Hey,
I am wondering what the variables "Codestack" and "code" are for.
I've never heard of it, or seen it before...
Also, this looks a lot like the well known return bug, but it takes a code instead of a handle.
(This might be the reason why it doesn't work in v1.24).
I have no idea how to fix this (if it is a problem).
Well, I don't get vJass, but just wanted to fix this, since I want this map to work with v1.24.
If there are any other possible reasons why this won't work with 1.24, please say so.
(anyhting that has to do with vJass if possible ^^)
I couldn't see this in any tutorial or other post as well, so I just posted it here
Thanks in advance.
I am wondering what the variables "Codestack" and "code" are for.
I've never heard of it, or seen it before...
JASS:
public method register takes code c returns nothing
set .stackCode = CodeStack.create(c, .stackCode)
set .stackCode.taInlet = TriggerAddAction(.trigInlet, c)
set .stackCode.taFilter = TriggerAddAction(.trigFilter, c)
endmethod
(This might be the reason why it doesn't work in v1.24).
JASS:
private static method C2I takes code c returns integer
return c
return 0
endmethod
JASS:
private static method I2UC takes integer i returns code
return i
return null
endmethod
I have no idea how to fix this (if it is a problem).
Well, I don't get vJass, but just wanted to fix this, since I want this map to work with v1.24.
If there are any other possible reasons why this won't work with 1.24, please say so.
(anyhting that has to do with vJass if possible ^^)
I couldn't see this in any tutorial or other post as well, so I just posted it here
Thanks in advance.