From 9d0e52735c4749f8106455cf93f7c370ee857be6 Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Tue, 13 Jan 2004 17:25:10 +0000 Subject: Fix the inverted logic in battlestar's initialization, which led to a coredump shortly after starting a game from the beginning. --- games/bsdgames/files/patch-battlestar::init.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 games/bsdgames/files/patch-battlestar::init.c (limited to 'games/bsdgames/files/patch-battlestar::init.c') diff --git a/games/bsdgames/files/patch-battlestar::init.c b/games/bsdgames/files/patch-battlestar::init.c new file mode 100644 index 000000000000..077107c3e5aa --- /dev/null +++ b/games/bsdgames/files/patch-battlestar::init.c @@ -0,0 +1,11 @@ +--- battlestar/init.c.old Mon Dec 15 17:48:41 2003 ++++ battlestar/init.c Mon Dec 15 17:48:54 2003 +@@ -62,7 +62,7 @@ + puts("Admiral D.W. Riggle\n"); + srandomdev(); + getutmp(uname); +- if (startup) ++ if (startup == NULL) + location = dayfile; + wiz = wizard(uname); + wordinit(); -- cgit v1.2.3