mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -05:00
fix silly error in ModMetadataimpl yet again
This commit is contained in:
parent
33e7ea3fe3
commit
39efa08218
1 changed files with 2 additions and 2 deletions
|
@ -183,8 +183,8 @@ Result<ModMetadata> ModMetadata::Impl::create(ModJson const& json) {
|
||||||
ver = json["gd"].as_string();
|
ver = json["gd"].as_string();
|
||||||
} else if (json["gd"].is_object()) {
|
} else if (json["gd"].is_object()) {
|
||||||
auto key = PlatformID::toShortString(GEODE_PLATFORM_TARGET, true);
|
auto key = PlatformID::toShortString(GEODE_PLATFORM_TARGET, true);
|
||||||
if (json["gd"].contains(key))
|
if (json["gd"].contains(key) && json["gd"][key].is_string())
|
||||||
ver = json["gd"][ver].as_string();
|
ver = json["gd"][key].as_string();
|
||||||
} else {
|
} else {
|
||||||
return Err("[mod.json] has invalid target GD version");
|
return Err("[mod.json] has invalid target GD version");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue