fix datafile reading problems for versions 350 and 351

This commit is contained in:
Enno Rehling 2016-02-29 14:57:01 +01:00
parent c1786c14ed
commit 2b62747718
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ bool checkpasswd(const faction * f, const char *passwd)
{ {
if (!passwd) return false; if (!passwd) return false;
if (password_verify(f->_password, passwd) == VERIFY_FAIL) { if (f->_password && password_verify(f->_password, passwd) == VERIFY_FAIL) {
log_warning("password check failed: %s", factionname(f)); log_warning("password check failed: %s", factionname(f));
return false; return false;
} }

View File

@ -32,7 +32,7 @@
#define EXPLICIT_CURSE_ISNEW_VERSION 347 /* CURSE_ISNEW is not reset in read/write, but in age() */ #define EXPLICIT_CURSE_ISNEW_VERSION 347 /* CURSE_ISNEW is not reset in read/write, but in age() */
#define SPELL_LEVEL_VERSION 348 /* f->max_spelllevel gets stored, not calculated */ #define SPELL_LEVEL_VERSION 348 /* f->max_spelllevel gets stored, not calculated */
#define OWNER_3_VERSION 349 /* regions store last owner, not last alliance */ #define OWNER_3_VERSION 349 /* regions store last owner, not last alliance */
#define ATTRIBOWNER_VERSION 350 /* all attrib_type functions know who owns the attribute */ #define ATTRIBOWNER_VERSION 351 /* all attrib_type functions know who owns the attribute */
#define BADCRYPT_VERSION 351 /* passwords are encrypted, poorly */ #define BADCRYPT_VERSION 351 /* passwords are encrypted, poorly */
#define ATHASH_VERSION 352 /* attribute-type hash, not name */ #define ATHASH_VERSION 352 /* attribute-type hash, not name */
#define NOWATCH_VERSION 353 /* plane->watchers is gone */ #define NOWATCH_VERSION 353 /* plane->watchers is gone */