• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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