infinite loop when using cycle weapon without having a weapon
Tested on: OpenMW Version 0.35.0 Revision 5e283997
Steps to reproduce: Drop every weapon in your inventory and press the appropriate key/button.
What should happen: nothing
What happens: OpenMW becomes unresponsive. (music keeps playing)
I think the problem is in the file apps/openmw/mwgui/inventorywindow.cpp line 640 checks if there are items in your inventory but counts all kinds of items. That in turn leads to the while loop in line 656 to infinitely loop as it is impossible to find a weapon.
(RM-2421 from redmine: created on 2015-03-02 by Tarek Matena, , closed on 2015-03-02 by scrawl .)
Edited by redmine