From b12cec09da43b0e8a1e7a19b3eecc63478755e82 Mon Sep 17 00:00:00 2001 From: scatterflower Date: Sat, 3 Apr 2021 23:57:45 -0500 Subject: [PATCH] increment ver string and fix off by one out of bounds char selection --- src/aoclient.cpp | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aoclient.cpp b/src/aoclient.cpp index b9207bc..c06da28 100644 --- a/src/aoclient.cpp +++ b/src/aoclient.cpp @@ -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) { diff --git a/src/main.cpp b/src/main.cpp index d754691..defcf23 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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;