Skip to content

Commit

Permalink
Increase max users from 12 to 13 (PR #28)
Browse files Browse the repository at this point in the history
Thanks @jbmagination for finding and fixing this!
  • Loading branch information
Crementif authored Nov 6, 2022
2 parents b655eba + f9b2cee commit 71bbdaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/app/users.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ bool loadUsers() {
nn::act::SlotNo currentAccount = nn::act::GetSlotNo();
nn::act::SlotNo defaultAccount = nn::act::GetDefaultAccount();

for (nn::act::SlotNo i=1; i<12; i++) {
for (nn::act::SlotNo i=1; i<13; i++) {
if (nn::act::IsSlotOccupied(i) == true) {
userAccount newAccount;

Expand Down Expand Up @@ -47,4 +47,4 @@ userAccount* getUserByPersistentId(nn::act::PersistentId id) {
if (user.persistentId == id) return &user;
}
return nullptr;
}
}

0 comments on commit 71bbdaf

Please sign in to comment.