1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 16:15:31 +00:00

Warning fix

This commit is contained in:
scrawl 2015-03-02 20:16:11 +01:00
parent 8b84fa5579
commit 653ddd3f25

View file

@ -653,7 +653,7 @@ namespace MWGui
if (selected != -1) if (selected != -1)
lastId = model.getItem(selected).mBase.getCellRef().getRefId(); lastId = model.getItem(selected).mBase.getCellRef().getRefId();
ItemModel::ModelIndex cycled = selected; ItemModel::ModelIndex cycled = selected;
for (int i=0; i<model.getItemCount(); ++i) for (unsigned int i=0; i<model.getItemCount(); ++i)
{ {
cycled += incr; cycled += incr;
cycled = (cycled + model.getItemCount()) % model.getItemCount(); cycled = (cycled + model.getItemCount()) % model.getItemCount();