--- deliantra/server/include/util.h 2010/04/29 15:49:04 1.103 +++ deliantra/server/include/util.h 2010/04/29 21:21:34 1.104 @@ -488,7 +488,7 @@ // return a number within the closed interval [min .. max] int operator () (int r_min, int r_max) { - return is_constant (r_min) && is_constant (r_max) && r_min <= r_max + return is_constant (r_min <= r_max) && r_min <= r_max ? r_min + operator ()(r_max - r_min + 1) : get_range (r_min, r_max); }