1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-05 15:55:45 +00:00

Savegame: Set equipment slot for lights (Fixes #1761)

This commit is contained in:
scrawl 2014-08-06 02:57:11 +02:00
parent 2bfcec53bf
commit 0f8a10f468

View File

@ -701,7 +701,8 @@ void MWWorld::ContainerStore::readState (const ESM::InventoryState& state)
for (std::vector<std::pair<ESM::LightState, int> >::const_iterator iter (state.mLights.begin());
iter!=state.mLights.end(); ++iter)
{
getState (lights, iter->first);
int slot = iter->second;
setSlot (getState (lights, iter->first), slot);
}
mLevelledItemMap = state.mLevelledItemMap;