Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
fix(binding): check type by enum not string
Browse files Browse the repository at this point in the history
  • Loading branch information
fjuton committed Jun 15, 2024
1 parent 934a769 commit e038acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/binding/binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Dictionary binding::get_game_assets(String game_name) {
}
for (auto x : i.value()["belmont"].items()) {
auto val = x.value();
if (val.type_name() != "string") {
if (val.type() != nlohmann::json_abi_v3_11_2::detail::value_t::string) {
std::string path = p->get_asset(val[1]).string();
dict[(godot::String)x.key().c_str()] = path.c_str();
num++;
Expand Down

0 comments on commit e038acc

Please sign in to comment.