From 52ce7ffea43c492a0d9d17dcb57c32bfa595a09e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Mon, 24 Mar 2025 02:39:05 -0400
Subject: [PATCH] Add some random parenthesis

This is highly unlikely to solve whatever is happening on DMs system
---
 xtrn/lord2/l2lib.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xtrn/lord2/l2lib.js b/xtrn/lord2/l2lib.js
index fc5ee0a841..64b1927ce9 100644
--- a/xtrn/lord2/l2lib.js
+++ b/xtrn/lord2/l2lib.js
@@ -1208,7 +1208,7 @@ var vars = {
 	'&time':{type:'fn', get:function() { return state.time }, set:function(x) { throw new Error('attempt to set &time'); } },
 	'&timeleft':{type:'fn', get:function() { return parseInt((dk.user.seconds_remaining + dk.user.seconds_remaining_from - time()) / 60, 10) } },
 	'&sex':{type:'fn', get:function() { return player.sexmale }, set:function(sexmale) { player.sexmale = clamp_integer(sexmale, 's16') } },
-	'&playernum':{type:'fn', get:function() { return (player.Record === undefined ? 0 : player.Record + 1) } },
+	'&playernum':{type:'fn', get:function() { return ((player.Record === undefined) ? 0 : (player.Record + 1)) } },
 	'&totalaccounts':{type:'fn', get:function() { return pfile.length } },
 	responce:{type:'int', val:0},
 	response:{type:'fn', get:function() { return vars.responce.val; }, set:function(val) { vars.responce.val = clamp_integer(val, 's32')  } },
-- 
GitLab