Skip to content

Commit af7d13d

Browse files
fix mod
1 parent 594e523 commit af7d13d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ bool replay = false;
7777
float rotated = 0.0f;
7878
int framesPressed = 0;
7979

80-
MAKE_HOOK_MATCH(LightManager_OnWillRenderObject, &LightManager::OnWillRenderObject, void, LightManager* self) {
80+
MAKE_HOOK_MATCH(LightManager_OnWillRenderObject, &LightManager::OnCameraPreRender, void, LightManager* self, UnityEngine::Camera* camera) {
8181
// Do stuff when this function is called
82-
LightManager_OnWillRenderObject(self);
82+
LightManager_OnWillRenderObject(self, camera);
8383
//if(!(getConfig().config["Active"].GetBool()) || replay) return;
8484
if(!getModConfig().Active.GetValue()) return;
8585
UnityEngine::Camera* c = UnityEngine::Camera::get_main();

0 commit comments

Comments
 (0)