Skip to content

Commit

Permalink
move app_fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Jul 16, 2023
1 parent 9a085d6 commit fde01f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/missiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1416,15 +1416,13 @@ void AddItemMissile(Missile &missile, AddMissileParameter &parameter)
itemMissileID = IPL_ADDMANAAC;
goto end_loop;
default:
break;
app_fatal(StrCat("wrong itemMissileID: ", itemMissileID));
}
}
}
}

end_loop: // Grab the first spectralID we get and proceed
if (itemMissileID == 0)
app_fatal(StrCat("wrong itemMissileID: ", itemMissileID));

switch (player._pClass) {
case HeroClass::Rogue:
Expand Down

0 comments on commit fde01f7

Please sign in to comment.