Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions code/ship/ship.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,14 @@ static void parse_ship(const char *filename, bool replace)
stuff_string(template_name, F_NAME, SHIP_MULTITEXT_LENGTH);
int template_id = ship_template_lookup(template_name);
if ( template_id != -1 ) {
if (ship_id >= 0) {
error_display(2,
"A template was specified for ship class '%s', which already exists. Template '%s' replaces "
"the whole existing entry, not only the values it sets. To change only some values, list "
"them without '+Use Template:'.",
fname,
template_name);
}
first_time = false;
sip->clone(Ship_templates[template_id]);
strcpy_s(sip->name, fname);
Expand Down
Loading