diff --git a/plugins/stockpiles.cpp b/plugins/stockpiles.cpp index ae7e9d421..cb4406264 100644 --- a/plugins/stockpiles.cpp +++ b/plugins/stockpiles.cpp @@ -2537,7 +2537,7 @@ static command_result loadstock ( color_ostream &out, vector & 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;