diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-08-27 19:36:36 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-08-28 09:17:26 -0700 |
commit | 4e89085e113c63de223cbcfe78cbff1b60f95199 (patch) | |
tree | bb4acecd7d338633bd84dbb8a00f38df71972013 /src/map/chrif.cpp | |
parent | 61dc59e612df9c6d2b3a3f4f27f1cb88b6fca98b (diff) | |
download | tmwa-4e89085e113c63de223cbcfe78cbff1b60f95199.tar.gz tmwa-4e89085e113c63de223cbcfe78cbff1b60f95199.tar.bz2 tmwa-4e89085e113c63de223cbcfe78cbff1b60f95199.tar.xz tmwa-4e89085e113c63de223cbcfe78cbff1b60f95199.zip |
Fix bug with mapnames being falsy
Fixes #7
Diffstat (limited to 'src/map/chrif.cpp')
-rw-r--r-- | src/map/chrif.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/chrif.cpp b/src/map/chrif.cpp index 126235c..33a9879 100644 --- a/src/map/chrif.cpp +++ b/src/map/chrif.cpp @@ -674,7 +674,7 @@ int chrif_saveaccountreg2(dumb_ptr<map_session_data> sd) for (j = 0; j < sd->status.account_reg2_num; j++) { struct global_reg *reg = &sd->status.account_reg2[j]; - if (reg->str[0] && reg->value != 0) + if (reg->str && reg->value != 0) { WFIFO_STRING(char_fd, p, reg->str, 32); WFIFOL(char_fd, p + 32) = reg->value; |