瀏覽代碼

clone IBounds returns IBounds (#292)

instead of Bounds
Mark Knol 8 年之前
父節點
當前提交
97dc3ed3fc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      h2d/col/IBounds.hx

+ 2 - 2
h2d/col/IBounds.hx

@@ -152,7 +152,7 @@ class IBounds {
 	}
 
 	public inline function clone() {
-		var b = new Bounds();
+		var b = new IBounds();
 		b.xMin = xMin;
 		b.yMin = yMin;
 		b.xMax = xMax;
@@ -216,4 +216,4 @@ class IBounds {
 		return b;
 	}
 
-}
+}