From 131bd5c91deb7172ecd0ebb893845956cef502fd Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Sun, 30 Aug 2020 22:10:49 +0200 Subject: [PATCH] Fix unused template argument --- apps/openmw/mwmechanics/actorutil.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/actorutil.hpp b/apps/openmw/mwmechanics/actorutil.hpp index 275a3a8143..490dc119a7 100644 --- a/apps/openmw/mwmechanics/actorutil.hpp +++ b/apps/openmw/mwmechanics/actorutil.hpp @@ -58,7 +58,7 @@ namespace MWMechanics template void modifyBaseInventory(const std::string& actorId, const std::string& itemId, int amount) { - ESM::NPC copy = *MWBase::Environment::get().getWorld()->getStore().get().find(actorId); + T copy = *MWBase::Environment::get().getWorld()->getStore().get().find(actorId); for(auto& it : copy.mInventory.mList) { if(Misc::StringUtils::ciEqual(it.mItem, itemId))