diff --git a/src/p_spec.c b/src/p_spec.c
index ed5034a874b8d2035c902b80a1de489fe3337ecc..605638bd33456bf3b91caad0fc55ce3709180a1f 100644
--- a/src/p_spec.c
+++ b/src/p_spec.c
@@ -2737,7 +2737,7 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
 					// Play the sound without origin for anyone, as long as they're inside tagged areas.
 					else
 					{
-						UINT i = 0;
+						UINT8 i = 0;
 						mobj_t* camobj = players[displayplayer].mo;
 						ffloor_t *rover;
 						boolean foundit = false;