Fix MSVC issue converting a string literal (const char*) to bool when assigning to a variant<bool, string, ...>

More information: https://twitter.com/davidcapello/status/1609918634075226121
This commit is contained in:
David Capello 2023-01-02 11:30:33 -03:00
parent 574f583753
commit c77c95181a

View File

@ -89,7 +89,7 @@ int Properties_newindex(lua_State* L)
break;
case LUA_TSTRING:
properties[field] = lua_tostring(L, 3);
properties[field] = std::string(lua_tostring(L, 3));
break;
case LUA_TTABLE: