File: avoid-segfault-when-sdl-fails.patch

package info (click to toggle)
gunroar 0.15.dfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 5,808 kB
  • ctags: 3
  • sloc: makefile: 64; xml: 63
file content (16 lines) | stat: -rw-r--r-- 644 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright (C) 2007  Peter De Wachter <pdewacht@gmail.com>
# Distributed under the same license as the game. See debian/copyright.

Index: gunroar-0.15.dfsg1/src/abagames/gr/gamemanager.d
===================================================================
--- gunroar-0.15.dfsg1.orig/src/abagames/gr/gamemanager.d	2007-12-31 21:07:04.000000000 +0100
+++ gunroar-0.15.dfsg1/src/abagames/gr/gamemanager.d	2007-12-31 21:07:28.000000000 +0100
@@ -195,7 +195,7 @@
   }
 
   public void saveErrorReplay() {
-    if (state == inGameState)
+    if (state !is null && state == inGameState)
       inGameState.saveReplay("error.rpl");
   }