Skip to content

Commit

Permalink
catch enum failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Sep 10, 2022
1 parent 7fed342 commit b2ba971
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified build/red4ext/plugins/mod_settings/mod_settings.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion src/red4ext/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void __fastcall ProcessModSettings(ScriptData * scriptData) {
settingsVar = new ModRuntimeSettingsVarFloat(prop);
} else if (prop->type->name == "Int32" || prop->type->name == "Uint32") {
settingsVar = new ModRuntimeSettingsVarInt32(prop);
} else if (propType->GetType() == RED4ext::ERTTIType::Enum) {
} else if (propType && propType->GetType() == RED4ext::ERTTIType::Enum) {
settingsVar = new ModRuntimeSettingsVarEnum(prop);
}

Expand Down

0 comments on commit b2ba971

Please sign in to comment.