- Joined
- Nov 30, 2007
- Messages
- 1,202
Can this method:
... be replaced with this?
As it returns 0 if it doesn't exist right? Thanks in advance.
JASS:
static method getPool takes integer unitTypeId returns thistype
if (typeTable.has(unitTypeId) then
return typeTable[unitTypeId]
endif
return 0
endmethod
JASS:
static method getPool takes integer unitTypeId returns thistype
return typeTable[unitTypeId]
endmethod