Adding default case

This commit is contained in:
Pcornat 2024-12-01 12:48:20 +01:00
parent 77e5a18784
commit 877e7ad2fa
Signed by: Pcornat
GPG Key ID: E0326CC678A00BDD

View File

@ -119,6 +119,8 @@ namespace character {
case toolsHash: case toolsHash:
billy.emplace(static_cast<tools>(value), std::make_unique<Tools>(static_cast<tools>(value))); billy.emplace(static_cast<tools>(value), std::make_unique<Tools>(static_cast<tools>(value)));
break; break;
default:
throw std::logic_error("Wrong hash for from_json in BillyObjects::from_json");
} }
} }
} }