diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-13 07:31:46 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-13 07:31:46 +0200 |
commit | b1e0b7728bc0933f17509b8bfbc48f218f9990dc (patch) | |
tree | 8469241ab98b0586a08780bf5ca95f684da82cbf /src/keycode.cpp | |
parent | eb255e68706c5fcc61bf17a81427c34505c3d519 (diff) | |
download | minetest-b1e0b7728bc0933f17509b8bfbc48f218f9990dc.tar.gz minetest-b1e0b7728bc0933f17509b8bfbc48f218f9990dc.tar.bz2 minetest-b1e0b7728bc0933f17509b8bfbc48f218f9990dc.zip |
Fix keycode_to_keyname return value
Diffstat (limited to 'src/keycode.cpp')
-rw-r--r-- | src/keycode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keycode.cpp b/src/keycode.cpp index 323d12e74..052cd7dc6 100644 --- a/src/keycode.cpp +++ b/src/keycode.cpp @@ -206,7 +206,7 @@ static const char *KeyNames[] = "-", "-", "-", "-", "-", "-", "-", "-", "Attn", "CrSel", "ExSel", "Erase OEF", "Play", "Zoom", "PA1", "OEM Clear", "-" }; -const std::string &keycode_to_keyname(s32 keycode) +const char *keycode_to_keyname(s32 keycode) { return KeyNames[keycode]; } |