mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 22:30:42 +02:00
Fixed gcc warning.
This commit is contained in:
parent
9af87d46f2
commit
e314ee432e
1 changed files with 2 additions and 2 deletions
|
@ -229,7 +229,7 @@ const std::array<ComponentPair, COMPONENT_MODE_ITEM_COUNT> COMPONENT_MODES = { {
|
|||
|
||||
QString EntityItemProperties::getHazeModeAsString() const {
|
||||
// return "inherit" if _hazeMode is not valid
|
||||
if (_hazeMode >= 0 && _hazeMode < COMPONENT_MODE_ITEM_COUNT) {
|
||||
if (_hazeMode < COMPONENT_MODE_ITEM_COUNT) {
|
||||
return COMPONENT_MODES[_hazeMode].second;
|
||||
} else {
|
||||
return COMPONENT_MODES[0].second;
|
||||
|
@ -238,7 +238,7 @@ QString EntityItemProperties::getHazeModeAsString() const {
|
|||
|
||||
QString EntityItemProperties::getHazeModeString(uint32_t mode) {
|
||||
// return "inherit" if mode is not valid
|
||||
if (mode >= 0 && mode < COMPONENT_MODE_ITEM_COUNT) {
|
||||
if (mode < COMPONENT_MODE_ITEM_COUNT) {
|
||||
return COMPONENT_MODES[mode].second;
|
||||
} else {
|
||||
return COMPONENT_MODES[0].second;
|
||||
|
|
Loading…
Reference in a new issue