diff options
| author | stonedDiscord <Tukz@gmx.de> | 2023-10-17 19:10:46 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2023-10-17 19:10:46 +0200 |
| commit | 755fb723b1e7882c37d66ec027eacb6bea5c63e6 (patch) | |
| tree | ee4f12c7351dcb2415390b250d4cc086da7cd7f9 /webAO/packets/handlers | |
| parent | 48895c90a25293fc8d5c48683358665b834562e9 (diff) | |
off by one because of the slice
Diffstat (limited to 'webAO/packets/handlers')
| -rw-r--r-- | webAO/packets/handlers/handleARUP.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webAO/packets/handlers/handleARUP.ts b/webAO/packets/handlers/handleARUP.ts index 97db9cc..9d09648 100644 --- a/webAO/packets/handlers/handleARUP.ts +++ b/webAO/packets/handlers/handleARUP.ts @@ -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}`)!; |
