summaryrefslogtreecommitdiff
path: root/src/game/GameModel.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-01-03 01:47:16 (GMT)
committer jacob1 <jfu614@gmail.com>2013-01-03 01:47:16 (GMT)
commit8e50abcab956b7cf842a7891bcb1ceac40caf5d4 (patch)
tree3d2e8b4dd4ea8bed33105104012f26ab5e0e9fb8 /src/game/GameModel.cpp
parentb0eadcde6c92193e5589ccc3884e1d26aea0934b (diff)
downloadpowder-8e50abcab956b7cf842a7891bcb1ceac40caf5d4.zip
powder-8e50abcab956b7cf842a7891bcb1ceac40caf5d4.tar.gz
change that will probably fix custom menus not showing
Diffstat (limited to 'src/game/GameModel.cpp')
-rw-r--r--src/game/GameModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GameModel.cpp b/src/game/GameModel.cpp
index 813781f..64724d6 100644
--- a/src/game/GameModel.cpp
+++ b/src/game/GameModel.cpp
@@ -253,7 +253,7 @@ void GameModel::BuildMenus()
tempTool = new ElementTool(i, sim->elements[i].Name, sim->elements[i].Description, PIXR(sim->elements[i].Colour), PIXG(sim->elements[i].Colour), PIXB(sim->elements[i].Colour), sim->elements[i].Identifier, sim->elements[i].IconGenerator);
}
- if(sim->elements[i].MenuSection < 12 && sim->elements[i].MenuVisible)
+ if(sim->elements[i].MenuSection < SC_TOTAL && sim->elements[i].MenuVisible)
{
menuList[sim->elements[i].MenuSection]->AddTool(tempTool);
}