mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 21:45:33 +00:00
Remove unneeded const_cast in TerrainStorage
This commit is contained in:
parent
2fe2f53b02
commit
c9d02c67c0
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ namespace MWRender
|
||||||
MWWorld::Store<ESM::Land>::iterator it = esmStore.get<ESM::Land>().begin();
|
MWWorld::Store<ESM::Land>::iterator it = esmStore.get<ESM::Land>().begin();
|
||||||
for (; it != esmStore.get<ESM::Land>().end(); ++it)
|
for (; it != esmStore.get<ESM::Land>().end(); ++it)
|
||||||
{
|
{
|
||||||
ESM::Land* land = const_cast<ESM::Land*>(&*it); // TODO: fix store interface
|
const ESM::Land* land = &*it;
|
||||||
land->loadData(ESM::Land::DATA_VCLR|ESM::Land::DATA_VHGT|ESM::Land::DATA_VNML|ESM::Land::DATA_VTEX);
|
land->loadData(ESM::Land::DATA_VCLR|ESM::Land::DATA_VHGT|ESM::Land::DATA_VNML|ESM::Land::DATA_VTEX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue