aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/packets')
-rw-r--r--webAO/packets/handlers/handleARUP.ts2
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}`)!;