Asserts on unknown TurnInstruction

This commit is contained in:
Daniel J. Hofmann
2016-03-01 14:05:37 +01:00
committed by Patrick Niklaus
parent 02c3c3e847
commit f784b85cd6
+4
View File
@@ -90,6 +90,10 @@ std::string instructionToString(extractor::TurnInstruction instruction)
case extractor::TurnInstruction::AccessRestrictionPenalty: case extractor::TurnInstruction::AccessRestrictionPenalty:
BOOST_ASSERT_MSG(false, "Invalid turn type used"); BOOST_ASSERT_MSG(false, "Invalid turn type used");
break; break;
default:
BOOST_ASSERT_MSG(false, "unknown TurnInstruction");
break;
} }
return token; return token;