Skip to content

Commit

Permalink
make sure game doesn't crash due to spawn not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamashi committed Feb 15, 2022
1 parent be28b93 commit 92fcc63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/reverse/RTTIExtender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ struct TEMP_PendingEntity
virtual void AddRef() = 0;
};
RED4EXT_ASSERT_OFFSET(Unk00, entityID, 0x110);
RED4EXT_ASSERT_OFFSET(Unk00, entity, 0x118);

Unk00* unk00;
uint64_t unk08;
Expand Down Expand Up @@ -530,7 +531,9 @@ struct exEntitySpawnerSystem : gameIGameSystem
};

auto* pGameInstance = Singleton->gameInstance;
func(reinterpret_cast<GameInstance_78*>(pGameInstance->unk78)->unk00->worldRuntimeEntityRegistry, aUnk.entity);

if (aUnk.entity)
func(reinterpret_cast<GameInstance_78*>(pGameInstance->unk78)->unk00->worldRuntimeEntityRegistry, aUnk.entity);
}

public:
Expand Down
1 change: 0 additions & 1 deletion vendor/luasocket
Submodule luasocket deleted from 5b18e4

0 comments on commit 92fcc63

Please sign in to comment.