diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-08 14:33:14 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-08 14:33:14 +0000 |
commit | 731dfb8f3ca9c34e4160021cb221c3056c00dbf9 (patch) | |
tree | cb8214aa1a8990dbb4b0e1ef4688eea030c76a52 /src/client/input.cc | |
parent | 1317b6c1a231f5ccaf4ce11814863c77f93d8921 (diff) |
finalized renaming from server namespace to dedicated
Diffstat (limited to 'src/client/input.cc')
-rw-r--r-- | src/client/input.cc | 8 |
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); |