Throw exception on corrupt weapon list

This commit is contained in:
Kp 2014-09-17 02:11:59 +00:00
parent 5b70836203
commit f5c950df69

View file

@ -749,7 +749,7 @@ int POrderList (int num)
{
return (i);
}
Error ("Primary Weapon is not in order list!!!");
throw std::runtime_error("primary weapon list corrupt");
}
int SOrderList (int num)
@ -761,7 +761,7 @@ int SOrderList (int num)
{
return (i);
}
Error ("Secondary Weapon is not in order list!!!");
throw std::runtime_error("secondary weapon list corrupt");
}