diff options
Diffstat (limited to 'src/game/GameController.cpp')
| -rw-r--r-- | src/game/GameController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp index 9e7978b..c866805 100644 --- a/src/game/GameController.cpp +++ b/src/game/GameController.cpp @@ -1298,7 +1298,7 @@ std::string GameController::ElementResolve(int type) std::string GameController::WallName(int type) { - if(gameModel && gameModel->GetSimulation() && gameModel->GetSimulation()->wtypes && type >= 0) + if(gameModel && gameModel->GetSimulation() && gameModel->GetSimulation()->wtypes && type >= 0 && type < UI_WALLCOUNT) return std::string(gameModel->GetSimulation()->wtypes[type].name); else return ""; |
