Skip to content

Commit

Permalink
ispath
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Oct 10, 2024
1 parent a82cb1c commit d12eb04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/unit_tests/gun_sanity.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if(!(target_gun.default_ammo_type in target_gun.allowed_ammo_types))
TEST_FAIL("The default ammo ([target_gun.default_ammo_type]) in [gun_path] in not in its allowed ammo types")

if(istype(gun_path, /obj/item/gun/ballistic))
if(ispath(gun_path, /obj/item/gun/ballistic))
if(!(target_gun.magazine?.type == target_gun.default_ammo_type))
TEST_FAIL("[gun_path]'s mag ([target_gun.magazine?.type]) does not equal its default_ammo_type")
else
Expand Down

0 comments on commit d12eb04

Please sign in to comment.