Skip to content

Commit 655c676

Browse files
committed
update(scripting): Fix Config Value return if kley is not found
1 parent e821355 commit 655c676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Plugins/src/scripting/Configuration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ SMM_API const char *scripting_Configuration_Fetch(const char *key)
5454
std::map<std::string, std::any> config = g_Config->FetchConfiguration();
5555

5656
if (config.find(key) == config.end())
57-
return key;
57+
return SerializeData(key).c_str();
5858

5959
std::any value = config.at(key);
6060
return SerializeData(value).c_str();

0 commit comments

Comments
 (0)