File nethack-3.4.3-attack-array.patch of Package nethack

--- src/mhitu.c
+++ src/mhitu.c
@@ -233,7 +233,7 @@
 			for(i = 0; i < NATTK; i++)
 				if(mdat->mattk[i].aatyp == AT_ENGL)
 					break;
-			if (mdat->mattk[i].aatyp != AT_ENGL)
+			if (i >= NATTK)
 			      impossible("Swallower has no engulfing attack?");
 			else {
 				if (is_whirly(mdat)) {
openSUSE Build Service is sponsored by