aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-15 18:57:44 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-15 18:57:44 +0000
commit2e4e5d61f21ce44386a96c83ad07444bf337ce21 (patch)
treedc13798549e5b19f1b0a03a8cb0231c3eda0fb54 /src/game.c
parent62838fb8a4d27654998b6b304d1c485e497bfa4c (diff)
Don't crash if audio can't be used
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@135 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/game.c b/src/game.c
index 8a3edde..ff757f4 100644
--- a/src/game.c
+++ b/src/game.c
@@ -264,8 +264,6 @@ Game *game_new(int width, int height, GameOptions gameopts) {
g->audio = audio_setup(gameopts.audio_debug, gameopts.no_music);
if ( g->audio == NULL ) {
fprintf(stderr, "Couldn't initialise audio\n");
- free(g);
- return NULL;
}
/* Load models */