fix: More P2468R2 issues

This commit is contained in:
WerWolv
2023-02-02 21:13:56 +01:00
parent b1edede53a
commit 22ff033b5e
3 changed files with 4 additions and 5 deletions

View File

@@ -219,7 +219,7 @@ namespace hex::plugin::builtin {
continue;
for (const auto &newHash : hashes) {
if (newHash->getUnlocalizedName() == hash["type"]) {
if (newHash->getUnlocalizedName() == hash["type"].get<std::string>()) {
auto newFunction = newHash->create(hash["name"]);
newFunction.getType()->load(hash["settings"]);