Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/key.cc')
-rw-r--r--src/client/key.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/key.cc b/src/client/key.cc
index 36c9787..e2e56e5 100644
--- a/src/client/key.cc
+++ b/src/client/key.cc
@@ -6,7 +6,7 @@
#include "auxiliary/functions.h"
#include "client/key.h"
-
+#include <cassert>
namespace client
{
@@ -18,6 +18,7 @@ Key::Key(const unsigned int scancode, const char *name, const char ascii)
key_lastpressed = 0;
key_waspressed = 0;
+ assert(name);
key_name.assign(name);
clear();