1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-20 07:00:56 +00:00

Some formatting changes I missed

This commit is contained in:
AnyOldName3 2025-07-24 00:26:47 +01:00
parent be54521cfa
commit f8a96fae24
2 changed files with 4 additions and 2 deletions

View file

@ -54,7 +54,8 @@ void MWWorld::InventoryStore::storeEquipmentState(
inventory.mEquipmentSlots[static_cast<uint32_t>(index)] = i;
}
// I'm not sure if the narrowing cast below is safe, but I think it'd break the save format if I widen the destination type
// I'm not sure if the narrowing cast below is safe, but I think it'd break the save format if I widen the
// destination type
if (mSelectedEnchantItem.getType() != -1 && mSelectedEnchantItem->getBase() == &ref)
inventory.mSelectedEnchantItem = static_cast<uint32_t>(index);
}

View file

@ -43,7 +43,8 @@ namespace
// blendmap, apparently.
matrix.preMultTranslate(osg::Vec3f(1.0f / blendmapScale / 4.0f, 1.0f / blendmapScale / 4.0f, 0.f));
texMat = mTexMatMap.insert(std::make_pair(static_cast<float>(blendmapScale), new osg::TexMat(matrix))).first;
texMat = mTexMatMap.insert(std::make_pair(static_cast<float>(blendmapScale), new osg::TexMat(matrix)))
.first;
}
return texMat->second;
}