Skip to content

Commit

Permalink
update(scripting): Fix Config Value return if kley is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
skuzzis committed Dec 2, 2023
1 parent e821355 commit 655c676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Plugins/src/scripting/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ SMM_API const char *scripting_Configuration_Fetch(const char *key)
std::map<std::string, std::any> config = g_Config->FetchConfiguration();

if (config.find(key) == config.end())
return key;
return SerializeData(key).c_str();

std::any value = config.at(key);
return SerializeData(value).c_str();
Expand Down

0 comments on commit 655c676

Please sign in to comment.