From f7bbf4670c1bb62b0b50fda7010b900c814ec2a5 Mon Sep 17 00:00:00 2001
From: AllyTally <alexiatilde@gmail.com>
Date: Fri, 25 Nov 2022 20:32:37 -0400
Subject: [PATCH] Fix copy-paste error

---
 desktop_version/src/Render.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp
index 1d45f5a4..a863c9cb 100644
--- a/desktop_version/src/Render.cpp
+++ b/desktop_version/src/Render.cpp
@@ -2059,7 +2059,7 @@ void rendermap(void)
 
 void rendermapfog(void)
 {
-    int mapwidth = map.custommode ? map.customheight : 20;
+    int mapwidth = map.custommode ? map.customwidth : 20;
     int mapheight = map.custommode ? map.customheight : 20;
     int mapzoom = map.custommode ? map.customzoom : 1;
     int mapxoff = map.custommode ? map.custommmxoff : 0;
@@ -2137,7 +2137,7 @@ void rendermaplegend(void)
 
 void rendermapcursor(bool flashing)
 {
-    int mapwidth = map.custommode ? map.customheight : 20;
+    int mapwidth = map.custommode ? map.customwidth : 20;
     int mapheight = map.custommode ? map.customheight : 20;
     int mapzoom = map.custommode ? map.customzoom : 1;
     int mapxoff = map.custommode ? map.custommmxoff : 0;
@@ -2675,7 +2675,7 @@ void teleporterrender(void)
 
     // Draw a box around the currently selected teleporter
 
-    int mapwidth = map.custommode ? map.customheight : 20;
+    int mapwidth = map.custommode ? map.customwidth : 20;
     int mapheight = map.custommode ? map.customheight : 20;
     int mapzoom = map.custommode ? map.customzoom : 1;
     int mapxoff = map.custommode ? map.custommmxoff : 0;