Skip to content

Commit

Permalink
Note: Be clear about invalid states
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Aug 11, 2018
1 parent 635412c commit d64c519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/Note.cpp
Expand Up @@ -100,7 +100,7 @@ void Note::loadTextures() {
break;
}

case Undefined: break; // Cannot handle notes of undefined type.
case Undefined: arx_unreachable(); // Cannot handle notes of undefined type.
}
}

Expand Down Expand Up @@ -169,7 +169,7 @@ void Note::calculateLayout() {
break;
}

case Undefined: return; // Cannot handle notes of undefined type.
case Undefined: arx_unreachable(); // Cannot handle notes of undefined type.
}

if(m_type == QuestBook) {
Expand Down

0 comments on commit d64c519

Please sign in to comment.