Merge pull request #127 from BJNFNE/fix-invalid-typo

fix typo for invalid in weapon.c
This commit is contained in:
Dominic Szablewski 2024-07-07 01:05:51 -07:00 committed by GitHub
commit a372b51f59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,7 +143,7 @@ void weapons_fire(ship_t *ship, int weapon_type) {
case WEAPON_TYPE_EBOLT: weapon_fire_ebolt(ship); break; case WEAPON_TYPE_EBOLT: weapon_fire_ebolt(ship); break;
case WEAPON_TYPE_SHIELD: weapon_fire_shield(ship); break; case WEAPON_TYPE_SHIELD: weapon_fire_shield(ship); break;
case WEAPON_TYPE_TURBO: weapon_fire_turbo(ship); break; case WEAPON_TYPE_TURBO: weapon_fire_turbo(ship); break;
default: die("Inavlid weapon type %d", weapon_type); default: die("Invalid weapon type %d", weapon_type);
} }
ship->weapon_type = WEAPON_TYPE_NONE; ship->weapon_type = WEAPON_TYPE_NONE;
} }