• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[JASS] Return bug fixed for more than H2I?

Status
Not open for further replies.
Level 22
Joined
Nov 14, 2008
Messages
3,256
Hey,

I found an intresting system that I wanted to use, it was a complete mess so I just edited a little like making things private, libraries and a struct. Notices that it used a H2I function so I replaced it with GetHandleId.

But then I found some more weird stuff that also corrupts the map, I guess Blizzard fixed all Return bugs or?

Anyway I wonder how I would replace these functions. I guess I have to save the integer information somewhere but if you got a thing for these, please tell me and others.

JASS:
constant function I2U takes integer i returns unit
return i
return null
endfunction

constant function I2T takes integer i returns trigger
return i
return null
endfunction

constant function I2TT takes integer i returns texttag
return i
return null
endfunction

constant function I2It takes integer i returns item
return i
return null
endfunction

constant function I2D takes integer i returns destructable
return i
return null
endfunction

constant function I2FM takes integer i returns fogmodifier
return i
return null
endfunction
 
Status
Not open for further replies.
Top