// Ensure we have written the number of records that was estimated
assert(writer.getRecordCount()==recordCount+1);// 1 extra for TES3 record
if(writer.getRecordCount()!=recordCount+1)// 1 extra for TES3 record
std::cerr<<"Warning: number of written savegame records does not match. Estimated: "<<recordCount+1<<", written: "<<writer.getRecordCount()<<std::endl;