mirror of
https://github.com/HerculesWS/Hercules
synced 2026-08-15 12:23:13 -04:00
Fix warning C4702 (unreachable code) in aclif_get_first_world_name
This commit is contained in:
parent
0b5c18b857
commit
3ac77db7c8
1 changed files with 2 additions and 1 deletions
|
|
@ -1138,7 +1138,8 @@ static void aclif_remove_remove_timer(struct online_api_login_data *user)
|
|||
static const char *aclif_get_first_world_name(void)
|
||||
{
|
||||
struct DBIterator *iter = db_iterator(aclif->char_servers_db);
|
||||
for (struct char_server_data *data = dbi_first(iter); dbi_exists(iter); data = dbi_next(iter)) {
|
||||
struct char_server_data *data = dbi_first(iter);
|
||||
if (dbi_exists(iter)) {
|
||||
dbi_destroy(iter);
|
||||
return data->world_name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue