increment ver string and fix off by one out of bounds char selection

This commit is contained in:
scatterflower 2021-04-03 23:57:45 -05:00
parent 428053934a
commit b12cec09da
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ void AOClient::changeCharacter(int char_id)
area->characters_taken.removeAll(server->getCharID(current_char));
}
if(char_id > server->characters.length())
if(char_id >= server->characters.length())
return;
if (char_id >= 0) {

View File

@ -36,7 +36,7 @@ int main(int argc, char* argv[])
{
QCoreApplication app(argc, argv);
QCoreApplication::setApplicationName("akashi");
QCoreApplication::setApplicationVersion("apricot r2");
QCoreApplication::setApplicationVersion("apricot r3 prerelease");
std::atexit(cleanup);
ConfigManager config_manager;