| 1219 | { |
| 1220 | return; |
| 1221 | } |
| 1222 | |
| 1223 | for (int i = 0; i < mh->weapons.Size(); i++) |
| 1224 | { |
| 1225 | Ref<WeaponType> weapon = WeaponTypes.New(mh->weapons[i].name); |
| 1226 | if (!weapon) |
| 1227 | { |
| 1228 | continue; |
| 1229 | } |
| 1230 | int count = mh->weapons[i].count; |
| 1231 | for (int j = 0; j < count; j++) |
| 1232 | { |
| 1233 | pool._weaponsPool.Add(weapon); |
| 1234 | } |
| 1235 | } |
| 1236 | for (int i = 0; i < mh->magazines.Size(); i++) |
| 1237 | { |
| 1238 | Ref<MagazineType> type = MagazineTypes.New(mh->magazines[i].name); |
| 1239 | if (!type) |
| 1240 | { |
no test coverage detected