diff options
Diffstat (limited to 'src/game/GameController.cpp')
| -rw-r--r-- | src/game/GameController.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp index 4f94ab8..529137a 100644 --- a/src/game/GameController.cpp +++ b/src/game/GameController.cpp @@ -580,8 +580,8 @@ void GameController::ReloadSim() std::string GameController::ElementResolve(int type) { - if(gameModel && gameModel->GetSimulation() && gameModel->GetSimulation()->ptypes && type >= 0 && type < PT_NUM) - return std::string(gameModel->GetSimulation()->ptypes[type].name); + if(gameModel && gameModel->GetSimulation() && gameModel->GetSimulation()->elements && type >= 0 && type < PT_NUM) + return std::string(gameModel->GetSimulation()->elements[type].Name); else return ""; } |
