fixed some issues found by cppcheck

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6740 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
sireus
2011-12-19 21:02:57 +00:00
parent 4143a24d93
commit 77c2dd3944
6 changed files with 67 additions and 61 deletions
+2 -2
View File
@@ -154,7 +154,7 @@ int getCONlength(int n)
/** WIP ALERT */
int rendercommand_wip(int x, int y, int w)
{
int width, height;
int width, height = 0;
if( strlen(cmdline.buf) > 0 )
{
int ctx = -1;
@@ -178,7 +178,7 @@ int rendercommand_wip(int x, int y, int w)
vector<keym> keyms;
const char *keycmds[keym::NUMACTIONS] = { "bind", "specbind", "editbind" };
inline const char *keycmd(int type) { return type >= 0 && type < keym::NUMACTIONS ? keycmds[type] : ""; }
inline const char *keycmd(int type) { return type >= 0 && type < keym::NUMACTIONS ? keycmds[type] : ""; }
void keymap(char *code, char *key)
{