diff --git a/plugins/stockpiles.cpp b/plugins/stockpiles.cpp index ed0b253b0..ffc77bdf7 100644 --- a/plugins/stockpiles.cpp +++ b/plugins/stockpiles.cpp @@ -2832,8 +2832,8 @@ static command_result loadstock ( color_ostream &out, vector & paramete } } - if ( file.empty() || !file_exists ( file ) || - !is_dfstockfile ( file ) ) + if ( !is_dfstockfile ( file ) ) file += ".dfstock"; + if ( file.empty() || !file_exists ( file ) ) { out.printerr ( "loadstock: a .dfstock file is required to import\n" ); return CR_WRONG_USAGE;