From f5c950df69afb3ec621abe60a07c0ccb59ca1aab Mon Sep 17 00:00:00 2001 From: Kp Date: Wed, 17 Sep 2014 02:11:59 +0000 Subject: [PATCH] Throw exception on corrupt weapon list --- similar/main/weapon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/similar/main/weapon.cpp b/similar/main/weapon.cpp index e84b4600d..dbfd8915d 100644 --- a/similar/main/weapon.cpp +++ b/similar/main/weapon.cpp @@ -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"); }