From 877e7ad2fa75c4ae0961faebf1176388c0a616cf Mon Sep 17 00:00:00 2001 From: Pcornat Date: Sun, 1 Dec 2024 12:48:20 +0100 Subject: [PATCH] Adding default case --- src/billy_objects.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/billy_objects.cpp b/src/billy_objects.cpp index 0cf0bdb..e737294 100644 --- a/src/billy_objects.cpp +++ b/src/billy_objects.cpp @@ -119,6 +119,8 @@ namespace character { case toolsHash: billy.emplace(static_cast(value), std::make_unique(static_cast(value))); break; + default: + throw std::logic_error("Wrong hash for from_json in BillyObjects::from_json"); } } }