--- deliantra/server/common/loader.C 2007/05/17 14:14:54 1.82 +++ deliantra/server/common/loader.C 2007/05/19 00:08:11 1.83 @@ -262,6 +262,12 @@ void object::post_load_check () { + if (type >= NUM_TYPES) + { + LOG (llevError, "%s: type out of range, resetting to 0.\n", debug_desc ()); + type = 0; + } + switch (type) { case BOW: