Fix missmerge, ReadField() may only be called once for each field.

This commit is contained in:
Yamagi Burmeister 2019-02-05 09:10:31 +01:00
parent 511db03dfc
commit 47010478bc
2 changed files with 1 additions and 5 deletions

View file

@ -641,14 +641,12 @@ typedef struct
int ofs;
fieldtype_t type;
int flags;
short save_ver;
short save_ver;
} field_t;
extern field_t fields[];
extern gitem_t itemlist[];
//
// g_cmds.c
//

View file

@ -709,8 +709,6 @@ ReadClient(FILE *f, gclient_t *client, short save_ver)
for (field = clientfields; field->name; field++)
{
ReadField(f, field, (byte *)client);
if (field->save_ver <= save_ver)
{
ReadField(f, field, (byte *)client);