diff --git a/apps/openmw/mwworld/inventorystore.cpp b/apps/openmw/mwworld/inventorystore.cpp index 24e41e6016..3ab48bafd8 100644 --- a/apps/openmw/mwworld/inventorystore.cpp +++ b/apps/openmw/mwworld/inventorystore.cpp @@ -54,7 +54,8 @@ void MWWorld::InventoryStore::storeEquipmentState( inventory.mEquipmentSlots[static_cast(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(index); } diff --git a/components/terrain/material.cpp b/components/terrain/material.cpp index 9a0510f0ff..9c3a7f589d 100644 --- a/components/terrain/material.cpp +++ b/components/terrain/material.cpp @@ -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(blendmapScale), new osg::TexMat(matrix))).first; + texMat = mTexMatMap.insert(std::make_pair(static_cast(blendmapScale), new osg::TexMat(matrix))) + .first; } return texMat->second; }