Changeset 14436 for trunk


Ignore:
Timestamp:
10/02/12 10:19:18 (12 years ago)
Author:
tbretz
Message:
For safety ensure twice that the index of dir[] is not exceeded.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r13942 r14436  
    24752475
    24762476        const uint16_t i = uint16_t(floor(fmod(ptr[6]+11.25, 360)/22.5));
    2477         fMagicWindDir->setText(dir[i]);
     2477        fMagicWindDir->setText(dir[i%16]);
    24782478    }
    24792479
Note: See TracChangeset for help on using the changeset viewer.