Fixed some issues from the CppCheck report.

This commit is contained in:
aleos89
2014-04-09 22:24:51 -04:00
parent e07a11186d
commit 35d838c9d2
7 changed files with 45 additions and 53 deletions

View File

@@ -407,7 +407,7 @@ int instance_destroy(short instance_id)
{
struct instance_data *im;
struct party_data *p;
int i, type = 0, count = 0;
int i, type = 0;
unsigned int now = (unsigned int)time(NULL);
if(instance_id <= 0 || instance_id > MAX_INSTANCE_DATA)
@@ -447,7 +447,7 @@ int instance_destroy(short instance_id)
type = 3;
for(i = 0; i < MAX_MAP_PER_INSTANCE; i++)
count += map_delinstancemap(im->map[i].m);
map_delinstancemap(im->map[i].m);
}
if(im->keep_timer != -1) {