diff --git a/src/hardware/hw_md2.c b/src/hardware/hw_md2.c
index a5f262aea61725229630c99c2a23cd5ec28fa67b..7edf02db061f02eb2d7b8fd917b0e004df567bdb 100644
--- a/src/hardware/hw_md2.c
+++ b/src/hardware/hw_md2.c
@@ -791,7 +791,7 @@ void HWR_InitMD2(void)
 		md2_models[i].grpatch = NULL;
 		md2_models[i].skin = -1;
 		md2_models[i].notfound = true;
-		md2_models[s].error = false;
+		md2_models[i].error = false;
 	}
 
 	// read the md2.dat file