diff --git a/code/pilotfile/csg_convert.cpp b/code/pilotfile/csg_convert.cpp
index c2de4b4..9369fd2 100644
--- a/code/pilotfile/csg_convert.cpp
+++ b/code/pilotfile/csg_convert.cpp
@@ -443,6 +443,8 @@ void pilotfile_convert::csg_import_red_alert()
 				throw std::runtime_error("Data check failure (RedAlert-weapon)!");
 			} else if (i >= 0) {
 				weapons.index = csg->weapon_list[i].index;
+			} else {
+				weapons.index = -1;
 			}
 
 			weapons.count = cfread_int(cfp);
@@ -461,6 +463,8 @@ void pilotfile_convert::csg_import_red_alert()
 				throw std::runtime_error("Data check failure (RedAlert-weapon)!");
 			} else if (i >= 0) {
 				weapons.index = csg->weapon_list[i].index;
+			} else {
+				weapons.index = -1;
 			}
 
 			weapons.count = cfread_int(cfp);
