- Joined
- Sep 3, 2009
- Messages
- 458
. . . If this code works properly.
because for some reason it does not go to this line here:
even if datu.abilityName == abilityName is true.
I just can't figure this thing out.
JASS:
private static method CheckInstance takes string abilityName returns thistype
local integer i = 1
loop
exitwhen i > TOTAL
set datu = AAC_ARRAY[i]
if datu.abilityName[i] == abilityName then
call BJDebugMsg( datu.abilityName[i] + " = " + abilityName)
set i = TOTAL + 1
else
call BJDebugMsg( datu.abilityName[i] + " != " + abilityName)
set i = i + 1
set datu = 0
endif
endloop
call BJDebugMsg("datu = " + I2S(datu))
return datu
endmethod
because for some reason it does not go to this line here:
JASS:
call BJDebugMsg( datu.abilityName[i] + " = " + abilityName)
set i = TOTAL + 1
even if datu.abilityName == abilityName is true.
I just can't figure this thing out.