1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-27 16:41:38 +00:00

remove redundant code

This commit is contained in:
Sebastian Fieber 2025-01-12 17:36:31 +01:00
parent 7c76387ffe
commit 8de0ccc82c

View file

@ -129,7 +129,6 @@ namespace MWLua
// Need to check for 0, 0 so that we can safely subtract 1 later, as per documentation on UniqueTextureId
if (textureId.first != 0)
{
MWWorld::ESMStore& store = *MWBase::Environment::get().getESMStore();
const MWWorld::Store<ESM::LandTexture>& textureStore = store.get<ESM::LandTexture>();
const std::string* textureString = textureStore.search(textureId.first - 1, textureId.second);
if (!textureString)