Skip to content

Commit d5015b6

Browse files
committed
Merge branch 'master' of https://github.com/sfall-team/sfall into better-docs
2 parents eca81a3 + bac9e63 commit d5015b6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

sfall/FalloutEngine/Structs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ struct GameObject {
242242
struct {
243243
MiscFlags sceneryFlags; // unused for scenery? (aka updated_flags)
244244
MiscFlags doorFlags; // used for doors states open/locked/jammed (aka cur_open_flags)
245-
long unused[9]; // offset 0x40 (not saved)
245+
long unused[9]; // offset 0x40 (not saved)
246246
} scenery;
247247
};
248248

sfall/Modules/Animations.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ static void __stdcall combat_begin_anim_stop_hook() {
520520
const fo::AnimationSet& set = animSet[i];
521521
if (set.currentAnim >= 1 &&
522522
(set.animations[set.currentAnim - 1].animType == fo::ANIM_TYPE_ANIMATE_FOREVER ||
523-
((set.animations[set.currentAnim - 1].source->artFid & 0xFF0000) >> 16 >= fo::ANIM_fall_back &&
523+
(set.animations[set.currentAnim - 1].source != nullptr &&
524+
(set.animations[set.currentAnim - 1].source->artFid & 0xFF0000) >> 16 >= fo::ANIM_fall_back &&
524525
(set.animations[set.currentAnim - 1].source->artFid & 0xFF0000) >> 16 <= fo::ANIM_fall_front_blood)))
525526
{
526527
continue;

0 commit comments

Comments
 (0)