Heres the line of code
(whereever it uses the hashtable variable Hash returns the error)
and when compiled it comes out to
whatd i do wrong lol
JASS:
struct i2i
private hashtable Hash = InitHashtable()
static method convert takes integer currentItemId returns integer
return LoadInteger(Hash, currentItemId, 0)
endmethod
private static method add takes integer itemIdFirst, integer itemIdSecond returns nothing
call SaveInteger(Hash, itemIdFirst, 0, itemIdSecond)
call SaveInteger(Hash, itemIdSecond, 0, itemIdFirst)
endmethod
private static method onInit takes nothing returns nothing
call i2i.add(0, 0)
endmethod
endstruct
(whereever it uses the hashtable variable Hash returns the error)
and when compiled it comes out to
JASS:
return LoadInteger(s__i2i_Hash[this], currentItemId, 0)
whatd i do wrong lol