Different return bugs fix

Kilgam

New Member
Reaction score
2
I already know how to fix the common H2I function, but how to fix this?

JASS:
    private function GetStoredUnit takes gamecache gc, string mk, string k returns unit
        return GetStoredInteger(gc, mk, k)
        return null
    endfunction


This obviously gives an error in jasshelper but i'm unsure how to use GetHandleId here.
 

Kilgam

New Member
Reaction score
2
Why would you even need to typecast with the new natives?

Because i use alot of old system that i don't wanna remove until it comes an update or a better system.
 
Reaction score
333
Because i use alot of old system that i don't wanna remove until it comes an update or a better system.

Practically anything is better than a system that relies on typecasting from integers to handles. You should update your code to take advantage of hash tables.
 
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