diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h index e1bcf2169..a23133150 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -163,7 +163,7 @@ enum { #define map_flag_gvg(m) (map[m].flag.gvg || (agit_flag && map[m].flag.gvg_castle))
//Caps values to min/max
-#define cap_value(a, min, max) (a>max?max:a<min?min:a)
+#define cap_value(a, min, max) (a>=max?max:a<=min?min:a)
//This stackable implementation does not means a BL can be more than one type at a time, but it's
//meant to make it easier to check for multiple types at a time on invocations such as
|