Skip to content

Commit

Permalink
xrEngine/CameraManager.cpp: Fixed out-of-loop variable usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Nov 11, 2015
1 parent 44f0435 commit 6f21860
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/xrEngine/CameraManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ CEffectorPP* CCameraManager::GetPPEffector(EEffectorPPType type)

ECamEffectorType CCameraManager::RequestCamEffectorId()
{
for (ECamEffectorType index = (ECamEffectorType)effCustomEffectorStartID;
ECamEffectorType index = (ECamEffectorType)effCustomEffectorStartID;
for (;
GetCamEffector(index);
index = (ECamEffectorType)(index + 1))
{
Expand All @@ -124,7 +125,8 @@ ECamEffectorType CCameraManager::RequestCamEffectorId()

EEffectorPPType CCameraManager::RequestPPEffectorId()
{
for (EEffectorPPType index = (EEffectorPPType)effCustomEffectorStartID;
EEffectorPPType index = (EEffectorPPType)effCustomEffectorStartID;
for (;
GetPPEffector(index);
index = (EEffectorPPType)(index + 1))
{
Expand Down

0 comments on commit 6f21860

Please sign in to comment.