Fixed a useless warning for PACKETVER < 20141016 (#5519)

Fixes #5515

Thanks to @joven15 and @Patotron
This commit is contained in:
Lemongrass3110
2020-11-03 20:30:34 +01:00
committed by GitHub
parent d158603424
commit 765b6a8ed2

View File

@@ -849,7 +849,7 @@ bool char_memitemdata_from_sql(struct s_storage* p, int max, int id, enum storag
/**
* Returns the correct gender ID for the given character and enum value.
*
* If the per-character sex is defined but not supported by the current packetver, the database entries are corrected.
* If the per-character sex is defined but not supported by the current packetver, the account gender is returned.
*
* @param sd Character data, if available.
* @param p Character status.
@@ -883,7 +883,10 @@ int char_mmo_gender( const struct char_session_data *sd, const struct mmo_charst
}
}
#if PACKETVER >= 20141016
ShowWarning( "Found unknown gender '%c' for character '%s' (CID: %d, AID: %d), returning account gender...\n", sex, p->name, p->char_id, p->account_id );
#endif
return sd->sex;
}
}