1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-19 20:23:54 +00:00

Merge pull request #1531 from drummyfish/cyclefix

Don't switch weapon when cycling to the same weapon (issue #4180)
This commit is contained in:
scrawl 2017-10-31 00:28:15 +00:00 committed by GitHub
commit 5e69f6033f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -735,7 +735,7 @@ namespace MWGui
}
}
if (!found)
if (!found || selected == cycled)
return;
useItem(model.getItem(cycled).mBase);