Просмотр исходного кода

Change assign to compare in if statement

- Fixes a warning on OS X
Nur Monson 12 лет назад
Родитель
Сommit
eddc2dd1fe
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Modules/Contents/2DPhysics/Source/PolyPhysicsScreenEntity.cpp

+ 1 - 1
Modules/Contents/2DPhysics/Source/PolyPhysicsScreenEntity.cpp

@@ -295,7 +295,7 @@ b2Fixture* PhysicsScreenEntity::getFixture(unsigned short index) {
 	if(fixture)	{
 		short i = 0;
 		for (b2Fixture* f = body->GetFixtureList(); f; f = f->GetNext()) {
-			if (i = index) {
+			if (i == index) {
 				fixture = f;
 				return fixture;
 			}