This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,12 @@ namespace RTE {
57
57
if (className == " AtomGroup" || className == " Attachable" || className == " AEmitter" ) {
58
58
reader.ReportError (" The PresetName to be copied was not found in data modules." );
59
59
}
60
+ std::string err = " ERROR: Couldn't find the preset '" + refName + " ' accessed in " + reader.GetCurrentFilePath () + " at line " + reader.GetCurrentFileLine ();
60
61
// If we couldn't find the preset to copy from, read it as an original but report the problem in the console
61
- g_ConsoleMan.PrintString (" ERROR: Couldn't find the preset '" + refName + " ' accessed in " + reader.GetCurrentFilePath () + " at line " + reader.GetCurrentFileLine ());
62
- // Preset name might have "[ModuleName]/" preceding it, detect it here and select proper module!
63
- int slashPos = refName.find_first_of (' /' );
64
- m_PresetName = (slashPos != std::string::npos) ? refName.substr (slashPos + 1 ) : refName;
65
- // Mark this so that the derived class knows it should be added to the PresetMan when it's done reading all properties.
66
- m_IsOriginalPreset = true ;
67
- // Indicate where this was read from
68
- m_DefinedInModule = reader.GetReadModuleID ();
62
+ g_ConsoleMan.PrintString (err);
63
+ g_ConsoleMan.Destroy ();
64
+ // Abort the game with same error message
65
+ RTEAssert (false , err);
69
66
}
70
67
} else if (propName == " PresetName" || propName == " InstanceName" ) {
71
68
SetPresetName (reader.ReadPropValue ());
You can’t perform that action at this time.
0 commit comments