FEATURE_STATS::FEATURE_STATS(LineView line) : BASE_STATS(REF_FEATURE_START + line.line(), line.s(0)) , subType(line.e(7, map_FEATURE_TYPE)) , psImd(line.imdShape(6)) , baseWidth(line.u16(1)) , baseBreadth(line.u16(2)) , tileDraw(line.b(8)) , allowLOS(line.b(9)) , visibleAtStart(line.b(10)) , damageable(line.b(3)) , body(line.u32(5)) , armourValue(line.u32(4)) { if (damageable && body == 0) { debug(LOG_ERROR, "The feature \"%s\", ref %d is damageable, but has no body points! The files need to be updated / fixed. Assigning 1 body point to feature.", pName, ref); body = 1; } }