diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-04-02 17:03:32 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-04-02 17:03:32 -0700 |
commit | a1c64eebe013bc5b7df72cce44aa85d66ead38e2 (patch) | |
tree | 1365911f49e2c87bcfcb5b2525f1c00a983ded26 /src/map/pc.cpp | |
parent | 331af48d176bbc0f9a15bc0620eceec903af6eb9 (diff) | |
download | tmwa-a1c64eebe013bc5b7df72cce44aa85d66ead38e2.tar.gz tmwa-a1c64eebe013bc5b7df72cce44aa85d66ead38e2.tar.bz2 tmwa-a1c64eebe013bc5b7df72cce44aa85d66ead38e2.tar.xz tmwa-a1c64eebe013bc5b7df72cce44aa85d66ead38e2.zip |
Fail sooner when the impossible things happen
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r-- | src/map/pc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 050bd4e..a344839 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -856,6 +856,7 @@ int pc_checkweighticon(struct map_session_data *sd) if (sd->weight * 10 >= sd->max_weight * 9) flag = 2; + // this is horribly hackish and may have caused crashes if (flag == 1) { if (!sd->sc_data[StatusChange::SC_WEIGHT50].timer) |