equal
deleted
inserted
replaced
158 FillAmmoStore(StoresList[Pred(StoreCnt)], newAmmos) |
158 FillAmmoStore(StoresList[Pred(StoreCnt)], newAmmos) |
159 end; |
159 end; |
160 |
160 |
161 function GetAmmoByNum(num: LongInt): PHHAmmo; |
161 function GetAmmoByNum(num: LongInt): PHHAmmo; |
162 begin |
162 begin |
163 if checkFails(num < StoreCnt, 'Invalid store number', true) then |
163 if checkFails(num < StoreCnt, 'Invalid ammo store number', true) then |
164 GetAmmoByNum:= nil |
164 GetAmmoByNum:= nil |
165 else |
165 else |
166 GetAmmoByNum:= StoresList[num] |
166 GetAmmoByNum:= StoresList[num] |
167 end; |
167 end; |
168 |
168 |