Skip to content

Commit 7b438bf

Browse files
committed
Copy paste fix
1 parent 7c4fd3f commit 7b438bf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/gameobjects/shape/triangle/Triangle.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,18 @@ var Triangle = new Class({
112112
updateData: function ()
113113
{
114114
var path = [];
115-
var rect = this.geom;
115+
var tri = this.geom;
116116
var line = this._tempLine;
117117

118-
rect.getLineA(line);
118+
tri.getLineA(line);
119119

120120
path.push(line.x1, line.y1, line.x2, line.y2);
121121

122-
rect.getLineB(line);
122+
tri.getLineB(line);
123123

124124
path.push(line.x2, line.y2);
125125

126-
rect.getLineC(line);
126+
tri.getLineC(line);
127127

128128
path.push(line.x2, line.y2);
129129

0 commit comments

Comments
 (0)