about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/client/input.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp
index 195b78aa..bf3e703c 100644
--- a/src/engine/client/input.cpp
+++ b/src/engine/client/input.cpp
@@ -150,7 +150,8 @@ void CInput::Update()
 			{
 				// handle keys
 				case SDL_KEYDOWN:
-					AddEvent(Event.key.keysym.unicode, 0, 0); // ignore_convention
+					if(Event.key.keysym.unicode < 255)	// ignore_convention
+						AddEvent(Event.key.keysym.unicode, 0, 0); // ignore_convention
                     Key = Event.key.keysym.sym;  // ignore_convention
 					break;
 				case SDL_KEYUP: