Fixed mistake in checking for a failure from list_remove_elem() in friends.cpp

This commit is contained in:
xboi209 2015-08-26 00:53:34 -07:00
parent ed37d44001
commit df840e101c

View file

@ -132,7 +132,7 @@ namespace pvpgn
continue;
}
if (!list_remove_elem(flist, &curr))
if (list_remove_elem(flist, &curr) != 0)
eventlog(eventlog_level_error, __FUNCTION__, "could not remove elem from flist");
delete(fr);
}
@ -162,7 +162,7 @@ namespace pvpgn
}
if (fr->mutual == FRIEND_UNLOADEDMUTUAL)
{
if (!list_remove_elem(flist, &curr))
if (list_remove_elem(flist, &curr) != 0)
eventlog(eventlog_level_error, __FUNCTION__, "could not remove item from list");
}
}