Browse Source

Fix "copy-paste" error

Aliaksandr Kryvashein 9 years ago
parent
commit
be308e67c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Urho3D/Urho2D/SpriteSheet2D.cpp

+ 1 - 1
Source/Urho3D/Urho2D/SpriteSheet2D.cpp

@@ -329,7 +329,7 @@ bool SpriteSheet2D::EndLoadFromJSONFile()
         JSONValue frameWidthVal = subTextureVal.Get("frameWidth");
         JSONValue frameHeightVal = subTextureVal.Get("frameHeight");
 
-        if (!frameHeightVal.IsNull() && !frameHeightVal.IsNull())
+        if (!frameWidthVal.IsNull() && !frameHeightVal.IsNull())
         {
             offset.x_ = subTextureVal.Get("frameX").GetInt();
             offset.y_ = subTextureVal.Get("frameY").GetInt();