Skip to content

Commit e33d3c9

Browse files
committed
Try fixing compilation in MSVC
1 parent b00763c commit e33d3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/_G_metatable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ sol::object __index(sol::this_state state, sol::global_table _G, sol::stack_obje
5959
Class cls(class_name);
6060
return _G[key] = sol::make_object(state, cls);
6161
}
62-
else if (const char *global_class_path = registry.get<sol::table>("_GDEXTENSION_GLOBAL_CLASS_PATHS").get_or<const char *>(key, nullptr)) {
62+
else if (const char *global_class_path = registry.get<sol::table>("_GDEXTENSION_GLOBAL_CLASS_PATHS").get_or(key, (const char *) nullptr)) {
6363
Ref<Resource> res = resource_loader->load(global_class_path);
6464
return _G[key] = to_lua(state, res);
6565
}

0 commit comments

Comments
 (0)