stockpiles: pass correct filename

develop
Casey Link 2014-11-20 13:37:14 +01:00
parent c251aeabe3
commit 543a88d03d
1 changed files with 1 additions and 1 deletions

@ -2537,7 +2537,7 @@ static command_result loadstock ( color_ostream &out, vector <string> & paramete
StockpileSerializer cereal ( sp );
if ( debug )
cereal.enable_debug ( out );
if ( !cereal.unserialize_from_file ( parameters.at ( 0 ) ) )
if ( !cereal.unserialize_from_file ( file ) )
{
out << "unserialize failed" << endl;
return CR_FAILURE;