Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 43b21a7

Browse files
committed
Clear up
1 parent 8add46e commit 43b21a7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

System/Entity.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ namespace RTE {
5454
if (preset) {
5555
preset->Clone(this);
5656
} else {
57-
if (className == "AtomGroup" || className == "Attachable" || className == "AEmitter") {
58-
reader.ReportError("The PresetName to be copied was not found in data modules.");
59-
}
60-
reader.ReportError("Couldn't find the preset '" + refName + " when trying to do CopyOf.");
57+
reader.ReportError("Couldn't find the preset \"" + refName + "\" of type \"" + className + "\" when trying to do CopyOf.");
6158
}
6259
} else if (propName == "PresetName" || propName == "InstanceName") {
6360
SetPresetName(reader.ReadPropValue());

0 commit comments

Comments
 (0)