mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix MSVC warning C26493
Relating to C++ Core Guidelines type.4, but returning a value at all is inappropriate.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user