diff options
author | shennetsind <ind@henn.et> | 2013-04-11 21:39:56 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-11 21:39:56 -0300 |
commit | e452716f7e9ffde75e17b360a284d7c6b8a080cf (patch) | |
tree | d0686e8f03bcb5ebeb3dfe1ef91948ccd3bcd405 | |
parent | 789c8d77c7de5673a3cefd8ca302d97bc358ce8e (diff) | |
download | hercules-e452716f7e9ffde75e17b360a284d7c6b8a080cf.tar.gz hercules-e452716f7e9ffde75e17b360a284d7c6b8a080cf.tar.bz2 hercules-e452716f7e9ffde75e17b360a284d7c6b8a080cf.tar.xz hercules-e452716f7e9ffde75e17b360a284d7c6b8a080cf.zip |
Fixed Bug #7159
http://hercules.ws/board/tracker/issue-7159-unused-variable-warning/
Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index a6c953c36..ee9715b6f 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -9543,7 +9543,7 @@ static bool pc_readdb_levelpenalty(char* fields[], int columns, int current) *------------------------------------------*/ int pc_readdb(void) { - int i,j,k,tmp=0; + int i,j,k; FILE *fp; char line[24000],*p; @@ -9640,7 +9640,7 @@ int pc_readdb(void) sv_readdb(db_path, "re/level_penalty.txt", ',', 4, 4, -1, &pc_readdb_levelpenalty); for( k=1; k < 3; k++ ){ // fill in the blanks for( j = 0; j < RC_MAX; j++ ){ - tmp = 0; + int tmp = 0; for( i = 0; i < MAX_LEVEL*2; i++ ){ if( i == MAX_LEVEL+1 ) tmp = level_penalty[k][j][0];// reset |