Fix crash bug in dfprobe

develop
Quietust 2012-01-20 08:30:09 -06:00
parent d35d070ff3
commit 67f60a07bd
1 changed files with 4 additions and 0 deletions

@ -432,11 +432,15 @@ bool Maps::ReadFeatures(mapblock40d * block, t_feature * local, t_feature * glob
{
if (block->global_feature != -1)
result &= GetGlobalFeature(*global, block->global_feature);
else
global->type = (df::feature_type)-1;
}
if (local)
{
if (block->local_feature != -1)
result &= GetLocalFeature(*local, block->position, block->local_feature);
else
local->type = (df::feature_type)-1;
}
return result;
}