UI: Fix output channels not being deleted

Output channel 6 was not being deleted, so use for loop
to delete all possible channels.
master
Clayton Groeneveld 2020-08-25 23:11:30 -05:00
parent bf4a917751
commit 08426c8710
1 changed files with 3 additions and 6 deletions

View File

@ -4125,12 +4125,9 @@ void OBSBasic::ClearSceneData()
ClearProjectors(); ClearProjectors();
obs_set_output_source(0, nullptr); for (int i = 0; i < MAX_CHANNELS; i++)
obs_set_output_source(1, nullptr); obs_set_output_source(i, nullptr);
obs_set_output_source(2, nullptr);
obs_set_output_source(3, nullptr);
obs_set_output_source(4, nullptr);
obs_set_output_source(5, nullptr);
lastScene = nullptr; lastScene = nullptr;
swapScene = nullptr; swapScene = nullptr;
programScene = nullptr; programScene = nullptr;