Skip to content

Commit

Permalink
off by one because of the slice
Browse files Browse the repository at this point in the history
  • Loading branch information
stonedDiscord committed Oct 17, 2023
1 parent 48895c9 commit 755fb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webAO/packets/handlers/handleARUP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { safeTags } from "../../encoding";
*/
export const handleARUP = (args: string[]) => {
args = args.slice(1);
for (let i = 0; i < args.length - 2; i++) {
for (let i = 0; i < args.length - 1; i++) {
if (client.areas[i]) {
// the server sends us ARUP before we even get the area list
const thisarea = document.getElementById(`area${i}`)!;
Expand Down

0 comments on commit 755fb72

Please sign in to comment.