projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Supertux can now run even if we were unable to open an audio device
[supertux.git]
/
src
/
scripting
/
squirrel_util.cpp
diff --git
a/src/scripting/squirrel_util.cpp
b/src/scripting/squirrel_util.cpp
index
1ece08c
..
b9c9ffa
100644
(file)
--- a/
src/scripting/squirrel_util.cpp
+++ b/
src/scripting/squirrel_util.cpp
@@
-112,7
+112,10
@@
void exit_squirrel()
debugger = NULL;
}
#endif
- sq_close(global_vm);
+
+ if (global_vm)
+ sq_close(global_vm);
+
global_vm = NULL;
}