mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-11 15:40:39 +00:00
Remove unneeded const_cast in TerrainStorage
This commit is contained in:
parent
2fe2f53b02
commit
c9d02c67c0
@ -20,7 +20,7 @@ namespace MWRender
|
||||
MWWorld::Store<ESM::Land>::iterator it = esmStore.get<ESM::Land>().begin();
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user