stockpiles: allow loading without file extension

develop
Casey Link 2014-11-21 16:51:45 +01:00
parent e66732f731
commit cc1e4d16a2
1 changed files with 2 additions and 2 deletions

@ -2832,8 +2832,8 @@ static command_result loadstock ( color_ostream &out, vector <string> & 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;