There is no point to compare an unsigned value with 0

post_malone
Andrei Kortunov 3 years ago
parent 62f5bedef5
commit 523ad825c2

@ -104,7 +104,7 @@ void ESM4::Land::load(ESM4::Reader& reader)
BTXT base;
if (reader.getExact(base))
{
assert(base.quadrant < 4 && base.quadrant >= 0 && "base texture quadrant index error");
assert(base.quadrant < 4 && "base texture quadrant index error");
reader.adjustFormId(base.formId);
mTextures[base.quadrant].base = std::move(base);
@ -126,8 +126,7 @@ void ESM4::Land::load(ESM4::Reader& reader)
}
reader.get(layer.texture);
reader.adjustFormId(layer.texture.formId);
assert(layer.texture.quadrant < 4 && layer.texture.quadrant >= 0
&& "additional texture quadrant index error");
assert(layer.texture.quadrant < 4 && "additional texture quadrant index error");
#if 0
FormId txt = layer.texture.formId;
std::map<FormId, int>::iterator lb = uniqueTextures.lower_bound(txt);

Loading…
Cancel
Save