diff --git a/src/hardware/hw_md2.c b/src/hardware/hw_md2.c
index ca24b76d28bb45842d9337e5007feec5805ba5b1..4ec2e346a54b227f806ecf210e84085cc16e1a4e 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