From 731dfb8f3ca9c34e4160021cb221c3056c00dbf9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 8 Nov 2008 14:33:14 +0000 Subject: finalized renaming from server namespace to dedicated --- src/client/input.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/client/input.cc') 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); -- cgit v1.2.3