From 162356af897ef240bb85572f14485376124957e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Thu, 4 Mar 2021 00:55:51 -0500
Subject: [PATCH] Fix bad argument (args, not arg)

Arr.
---
 xtrn/lord2/lord2.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xtrn/lord2/lord2.js b/xtrn/lord2/lord2.js
index 57a34b0f79..235363121f 100644
--- a/xtrn/lord2/lord2.js
+++ b/xtrn/lord2/lord2.js
@@ -373,7 +373,7 @@ function run_ref(sec, fname)
 		},
 		'readchar':function(args) {
 			// TODO: It's possible to "abort" input and get a zero-length string.
-			setvar(arg[0], getkey());
+			setvar(args[0], getkey());
 		},
 		'readnum':function(args) {
 			var x = scr.pos.x;
-- 
GitLab