Parcourir la source

warning C4706: assignment within conditional expression

Azaezel il y a 10 ans
Parent
commit
af38320300
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      Engine/source/forest/forestWindEmitter.cpp

+ 2 - 1
Engine/source/forest/forestWindEmitter.cpp

@@ -522,8 +522,9 @@ void ForestWindEmitter::_renderEmitterInfo( ObjectRenderInst *ri, SceneRenderSta
       // If the camera is close to the sphere, shrink the sphere so it remains visible.
       GameConnection* gc = GameConnection::getConnectionToServer();
       GameBase* gb;
-      if ( gc && (gb = gc->getCameraObject()) )
+      if (gc && (gc->getCameraObject()))
       {
+         gb = gc->getCameraObject();
          F32 camDist = (gb->getPosition() - getPosition()).len();
          if ( camDist < mWindRadius )
             useRadius = camDist;