Deleting old stockflow records.

Once a stockpile has been removed or abandoned, its persistent configuration is obsolete.
develop
Eric Wald 2014-08-03 15:07:04 -06:00
parent 1b1475fb94
commit 2ebebaf62f
1 changed files with 5 additions and 0 deletions

@ -132,6 +132,11 @@ function collect_orders()
-- Then again, this should only happen in unusual situations. -- Then again, this should only happen in unusual situations.
print("Mismatched stockflow entry for stockpile #"..stockpile.stockpile_number..": "..entry.value.." ("..order_number..")") print("Mismatched stockflow entry for stockpile #"..stockpile.stockpile_number..": "..entry.value.." ("..order_number..")")
end end
else
-- The stockpile no longer exists.
-- Perhaps it has been deleted, or perhaps this is a different fortress.
-- print("Missing stockflow pile "..spid)
entry:delete()
end end
end end
end end