Skip to content

Commit 6f21860

Browse files
committed
xrEngine/CameraManager.cpp: Fixed out-of-loop variable usage.
1 parent 44f0435 commit 6f21860

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/xrEngine/CameraManager.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ CEffectorPP* CCameraManager::GetPPEffector(EEffectorPPType type)
113113

114114
ECamEffectorType CCameraManager::RequestCamEffectorId()
115115
{
116-
for (ECamEffectorType index = (ECamEffectorType)effCustomEffectorStartID;
116+
ECamEffectorType index = (ECamEffectorType)effCustomEffectorStartID;
117+
for (;
117118
GetCamEffector(index);
118119
index = (ECamEffectorType)(index + 1))
119120
{
@@ -124,7 +125,8 @@ ECamEffectorType CCameraManager::RequestCamEffectorId()
124125

125126
EEffectorPPType CCameraManager::RequestPPEffectorId()
126127
{
127-
for (EEffectorPPType index = (EEffectorPPType)effCustomEffectorStartID;
128+
EEffectorPPType index = (EEffectorPPType)effCustomEffectorStartID;
129+
for (;
128130
GetPPEffector(index);
129131
index = (EEffectorPPType)(index + 1))
130132
{

0 commit comments

Comments
 (0)