Skip to content

Commit b87f3ba

Browse files
committed
Using reader instead of RTEAssert
1 parent 4538490 commit b87f3ba

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

System/Entity.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,7 @@ namespace RTE {
5757
if (className == "AtomGroup" || className == "Attachable" || className == "AEmitter") {
5858
reader.ReportError("The PresetName to be copied was not found in data modules.");
5959
}
60-
std::string err = "ERROR: Couldn't find the preset '" + refName + "' accessed in " + reader.GetCurrentFilePath() + " at line " + reader.GetCurrentFileLine();
61-
// If we couldn't find the preset to copy from, read it as an original but report the problem in the console
62-
g_ConsoleMan.PrintString(err);
63-
g_ConsoleMan.Destroy();
64-
// Abort the game with same error message
65-
RTEAssert(false, err);
60+
reader.ReportError("ERROR: Couldn't find the preset '" + refName + "' accessed in " + reader.GetCurrentFilePath() + " at line " + reader.GetCurrentFileLine());
6661
}
6762
} else if (propName == "PresetName" || propName == "InstanceName") {
6863
SetPresetName(reader.ReadPropValue());

0 commit comments

Comments
 (0)