Skip to content

Commit

Permalink
fixclient/apartmentselect): camera freezing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerrys-C authored Nov 3, 2024
1 parent 27cd40b commit b1d8843
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/apartmentselect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,12 @@ function SetupCamera(apartmentCam)
end

function StopCamera()
SetCamActive(previewCam, false)
DestroyCam(previewCam, true)
if DoesCamExist(previewCam) then
SetCamActive(previewCam, false)
RenderScriptCams(false, false, 0, true, true)
DestroyCam(previewCam, true)
previewCam = nil
end
end

function ManagePlayer()
Expand Down

0 comments on commit b1d8843

Please sign in to comment.