From c57f58775c8a378020682e8ec711ebbc210f9981 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 7 Feb 2022 20:20:08 +0000 Subject: [PATCH] Fix MSVC warning C26493 Relating to C++ Core Guidelines type.4, but returning a value at all is inappropriate. --- src/api/game/load_order_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/game/load_order_handler.cpp b/src/api/game/load_order_handler.cpp index d7463773..f391031a 100644 --- a/src/api/game/load_order_handler.cpp +++ b/src/api/game/load_order_handler.cpp @@ -51,7 +51,7 @@ unsigned int mapGameId(GameType gameType) { case GameType::fo4vr: return LIBLO_GAME_FO4VR; default: - return (unsigned int)-1; + throw std::logic_error("Unexpected game type"); } }