fix manipulator bug (unable to apply last custom profession)

"selected" starts with 1, not 0
develop
sv-esk 2016-03-03 01:19:16 +02:00
parent 1fd1169a48
commit 198571dca3
1 changed files with 1 additions and 1 deletions

@ -1008,7 +1008,7 @@ public:
} }
void select_profession(size_t selected) void select_profession(size_t selected)
{ {
if (selected >= manager.templates.size()) if (selected > manager.templates.size())
return; return;
ProfessionTemplate prof = manager.templates[selected - 1]; ProfessionTemplate prof = manager.templates[selected - 1];