From c1c815ce6e23f701c2d75843d46225c0401c316e Mon Sep 17 00:00:00 2001
From: mazmazz <mar.marcoz@outlook.com>
Date: Tue, 13 Nov 2018 10:31:06 -0500
Subject: [PATCH] Compile errors

---
 src/dehacked.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/dehacked.c b/src/dehacked.c
index a1e3360649..086c658bd1 100644
--- a/src/dehacked.c
+++ b/src/dehacked.c
@@ -1660,7 +1660,6 @@ static void readtextpromptpage(MYFILE *f, INT32 num, INT32 pagenum)
 				if (usi && usi <= textprompts[num]->numpages)
 				{
 					UINT8 metapagenum = usi - 1;
-					UINT8 picid;
 
 					textprompts[num]->page[pagenum].numpics = textprompts[num]->page[metapagenum].numpics;
 					textprompts[num]->page[pagenum].picmode = textprompts[num]->page[metapagenum].picmode;
@@ -1739,7 +1738,7 @@ static void readtextpromptpage(MYFILE *f, INT32 num, INT32 pagenum)
 			// end copypasta from readcutscenescene
 			else if (fastcmp(word, "NAME"))
 			{
-				INT32 i;
+				INT32 j;
 
 				// HACK: Add yellow control char now
 				// so the drawing function doesn't call it repeatedly
@@ -1750,10 +1749,10 @@ static void readtextpromptpage(MYFILE *f, INT32 num, INT32 pagenum)
 				name[33] = 0;
 
 				// Replace _ with ' '
-				for (i = 0; i < 32 && name[i]; i++)
+				for (j = 0; j < 32 && name[j]; j++)
 				{
-					if (name[i] == '_')
-						name[i] = ' ';
+					if (name[j] == '_')
+						name[j] = ' ';
 				}
 
 				strncpy(textprompts[num]->page[pagenum].name, name, 32);
-- 
GitLab