Skip to content

Commit 86db69f

Browse files
committed
MHStories 3: Fix FreeCam crash
1 parent 819aba8 commit 86db69f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mods/FreeCam.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,13 @@ void FreeCam::on_update_transform(RETransform* transform) {
333333
transform->worldTransform = m_last_camera_matrix;
334334
transform->position = m_last_camera_matrix[3];
335335

336+
// IDK!!!
337+
#if TDB_VER < 81
336338
if (joint != nullptr) {
337339
joint->posOffset = Vector4f{};
338340
*(Vector4f*)&joint->anglesOffset = Vector4f{0.0f, 0.00f, 0.0f, 1.0f};
339341
}
342+
#endif
340343
}
341344

342345
void FreeCam::on_pre_application_entry(void* entry, const char* name, size_t hash) {

0 commit comments

Comments
 (0)