Index: Makefile
===================================================================
RCS file: /cvs/ports/games/barony/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile	1 Oct 2018 12:00:12 -0000	1.4
+++ Makefile	14 May 2019 18:57:31 -0000
@@ -4,6 +4,7 @@ V =		3.2.2
 COMMENT =	3D, first person roguelike
 PKGNAME =	${DISTNAME:L}
 CATEGORIES =	games x11
+REVISION =      0
 
 GH_ACCOUNT =	TurningWheel
 GH_PROJECT =	Barony
Index: patches/patch-src_draw_cpp
===================================================================
RCS file: patches/patch-src_draw_cpp
diff -N patches/patch-src_draw_cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_draw_cpp	14 May 2019 18:57:32 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Index: src/draw.cpp
+--- src/draw.cpp.orig
++++ src/draw.cpp
+@@ -2135,6 +2135,12 @@ SDL_Rect ttfPrintTextColor( TTF_Font* font, int x, int
+ 			}
+ 		}
+ 
++		if (!surf)
++		{
++			printlog("warning: failed to create the surface\n");
++			return errorRect;
++		}
++
+ 		// create the text surface
+ 		TTF_SetFontOutline(font, 0);
+ 		SDL_Color sdlColorWhite = { 255, 255, 255, 255 };
