Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-08 14:33:14 +0000
committerStijn Buys <ingar@osirion.org>2008-11-08 14:33:14 +0000
commit731dfb8f3ca9c34e4160021cb221c3056c00dbf9 (patch)
treecb8214aa1a8990dbb4b0e1ef4688eea030c76a52 /src/client/input.cc
parent1317b6c1a231f5ccaf4ce11814863c77f93d8921 (diff)
finalized renaming from server namespace to dedicated
Diffstat (limited to 'src/client/input.cc')
-rw-r--r--src/client/input.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/input.cc b/src/client/input.cc
index 1df64df..026237e 100644
--- a/src/client/input.cc
+++ b/src/client/input.cc
@@ -321,9 +321,11 @@ void shutdown()
core::Func::remove("ui_control");
core::Func::remove("ui_view");
- keyboard->save_binds();
- delete keyboard;
- keyboard = 0;
+ if (keyboard) {
+ keyboard->save_binds();
+ delete keyboard;
+ keyboard = 0;
+ }
SDL_ShowCursor(SDL_ENABLE);
SDL_WM_GrabInput(SDL_GRAB_OFF);