stockpiles: fix quality unserialization

develop
Casey Link 2014-11-21 17:29:15 +01:00
parent cc1e4d16a2
commit 98a1278128
1 changed files with 1 additions and 1 deletions

@ -838,7 +838,7 @@ private:
*/
void unserialize_list_quality ( FuncReadImport read_value, int32_t list_size, bool ( &pile_list ) [7] )
{
if ( list_size > 0 && list_size < 7 )
if ( list_size > 0 && list_size <= 7 )
{
using df::enums::item_quality::item_quality;
df::enum_traits<item_quality> quality_traits;