fixed default page

This commit is contained in:
mrbesen 2022-09-21 16:50:06 +02:00
parent af63c975c7
commit dd01c70230
Signed by untrusted user: MrBesen
GPG Key ID: 596B2350DCD67504
1 changed files with 2 additions and 2 deletions

View File

@ -340,7 +340,7 @@ void LolAutoAccept::phase(const ownactions_t& ownactions, ClientAPI::ChampSelect
}
}
if(it.championID != (int32_t) champid || !it.completed) {
if((it.championID != (int32_t) champid || !it.completed) && champid != 0) {
// try to prepick a champion
Log::info << "try to pick champ: " << champid;
@ -415,7 +415,7 @@ void LolAutoAccept::champSelect() {
}
// reload config based on position if changed
if(pos != currentPosition) {
if(pos != currentPosition || !currentPositionSet) {
Log::note << "LolAutoAccept reloading config for position: " << pos << " because it was: " << currentPosition;
loadPosition(pos);
if(onPoschange) {