This commit is contained in:
fgsfds committed 2023-09-12 17:34:34 +02:00
1 parent c10050a14c
commit cb1e1e5dca
3 files changed
+16

No files matched your search

+4
View File
@@ -1191,7 +1191,11 @@ void handInflictMeleeDamage(s32 handnum, struct gset *gset, bool arg2)
struct model *model;
struct weaponfunc *func = gsetGetWeaponFunction(gset);
#ifdef AVOID_UB
if (func && (func->type & 0xff) == INVENTORYFUNCTYPE_MELEE) {
#else
if ((func->type & 0xff) == INVENTORYFUNCTYPE_MELEE) {
#endif
struct weaponfunc_melee *meleefunc = (struct weaponfunc_melee *)func;
rangelimit = meleefunc->range;
}