diff --git a/engine/qclib/pr_edict.c b/engine/qclib/pr_edict.c
index c3a355d9f..3606bede0 100644
--- a/engine/qclib/pr_edict.c
+++ b/engine/qclib/pr_edict.c
@@ -2709,6 +2709,7 @@ retry:
 			fnc[i].s_name += stringadjust;
 			fnc[i].s_file += stringadjust;
 		}
+		break;
 	default:
 		Sys_Error("Bad struct type");
 	}
diff --git a/engine/qclib/pr_exec.c b/engine/qclib/pr_exec.c
index 7afbcf867..02ccf9335 100644
--- a/engine/qclib/pr_exec.c
+++ b/engine/qclib/pr_exec.c
@@ -593,6 +593,7 @@ void SetExecutionToLine(progfuncs_t *progfuncs, int linenum)
 	switch(current_progstate->structtype)
 	{
 	case PST_DEFAULT:
+	case PST_QTEST:
 		for (snum = f->first_statement; pr_progstate[pn].linenums[snum] < linenum; snum++)
 		{
 			if (pr_statements16[snum].op == OP_DONE)
diff --git a/engine/qclib/qcc_pr_lex.c b/engine/qclib/qcc_pr_lex.c
index e80d4491c..4c9f16b10 100644
--- a/engine/qclib/qcc_pr_lex.c
+++ b/engine/qclib/qcc_pr_lex.c
@@ -683,7 +683,7 @@ pbool QCC_PR_Precompiler(void)
 			{
 				if (*pr_file_p == '\n')
 				{
-					QCC_PR_ParseError(0, "#include continued over line boundy\n");
+					QCC_PR_ParseError(0, "#include continued over line boundry\n");
 					break;
 				}
 				msg[a++] = *pr_file_p;