| 1237 | { |
| 1238 | Ref<MagazineType> type = MagazineTypes.New(mh->magazines[i].name); |
| 1239 | if (!type) |
| 1240 | { |
| 1241 | continue; |
| 1242 | } |
| 1243 | int count = mh->magazines[i].count; |
| 1244 | for (int j = 0; j < count; j++) |
| 1245 | { |
| 1246 | Ref<Magazine> magazine = new Magazine(type); |
| 1247 | magazine->_ammo = type->_maxAmmo; |
| 1248 | magazine->_reloadMagazine = 0; |
| 1249 | magazine->_reload = 0; |
no test coverage detected