mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-01 05:41:37 +00:00
Merge pull request #2997 from Assumeru/dude-wheres-my-var
Fix unused template argument
This commit is contained in:
commit
54f678b172
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ namespace MWMechanics
|
|||
template<class T>
|
||||
void modifyBaseInventory(const std::string& actorId, const std::string& itemId, int amount)
|
||||
{
|
||||
ESM::NPC copy = *MWBase::Environment::get().getWorld()->getStore().get<ESM::NPC>().find(actorId);
|
||||
T copy = *MWBase::Environment::get().getWorld()->getStore().get<T>().find(actorId);
|
||||
for(auto& it : copy.mInventory.mList)
|
||||
{
|
||||
if(Misc::StringUtils::ciEqual(it.mItem, itemId))
|
||||
|
|
Loading…
Reference in a new issue