diff --git a/sfall/Modules/Animations.cpp b/sfall/Modules/Animations.cpp index 540398f3..ed6f9e94 100644 --- a/sfall/Modules/Animations.cpp +++ b/sfall/Modules/Animations.cpp @@ -555,9 +555,16 @@ static __declspec(naked) void obj_read_obj_hack() { add ebx, 28; // single-frame death animations shl ebx, 16; and edx, 0x0F00FFFF; // clear rotaion and anim code - or edx, ebx; // set new anim code (also unset ZF) + or edx, ebx; // set new anim code + mov eax, edx; + call fo::funcoffs::art_exists_; + test eax, eax; + jz noArt; mov [esi + artFid], edx; mov dword ptr [esi + currFrame], 0; // for single frame + retn; +noArt: + or eax, 1; // unset ZF (exit from func) skip: retn; } diff --git a/sfall/version.h b/sfall/version.h index 732148d1..bc907822 100644 --- a/sfall/version.h +++ b/sfall/version.h @@ -25,6 +25,6 @@ #define VERSION_MAJOR 4 #define VERSION_MINOR 4 #define VERSION_BUILD 8 -#define VERSION_REV 0 +#define VERSION_REV 1 -#define VERSION_STRING "4.4.8" +#define VERSION_STRING "4.4.8.1"