X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fconfig%2Freader.cpp;h=0335faf3fcf5d5f988831b1fe2c0730e7393a607;hb=6234dc8ac6f39176121740b756828f0cba565149;hp=ba353ca00ee2d081fa91067705e9f62145dc76e3;hpb=5d2ae149e8a265e2cf488cf46c0c0e0d5b65e0c1;p=physics.git diff --git a/src/config/reader.cpp b/src/config/reader.cpp index ba353ca..0335faf 100644 --- a/src/config/reader.cpp +++ b/src/config/reader.cpp @@ -118,11 +118,11 @@ bool extractLine(const string& str, string* name, string* value) int char_pos = 0; - int name_start; - int name_end; + int name_start = 0; + int name_end = 0; - int value_start; - int value_end; + int value_start = 0; + int value_end = 0; const char* c_str = str.c_str(); @@ -208,7 +208,7 @@ void createKeyMap() for (int i = 'A'; i <= 'Z'; i++) // uppercase { buf[0] = (char)i; - keyMap[buf] = (SDLKey)i; + keyMap[buf] = (SDLKey)(i + 'a' - 'A'); } for (int i = 'a'; i <= 'z'; i++) // lowercase {