Explorar o código

[lua] Fixed wrong operator in PathAttachment:copy.

badlogic %!s(int64=6) %!d(string=hai) anos
pai
achega
7f4a6eb8f0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      spine-lua/attachments/PathAttachment.lua

+ 1 - 1
spine-lua/attachments/PathAttachment.lua

@@ -50,7 +50,7 @@ end
 
 
 function PathAttachment:copy ()
 function PathAttachment:copy ()
   local copy = PathAttachment.new(self.name)
   local copy = PathAttachment.new(self.name)
-  self.copyTo(copy)
+  self:copyTo(copy)
   copy.length = utils.copy(self.lengths)
   copy.length = utils.copy(self.lengths)
   copy.closed = self.closed
   copy.closed = self.closed
   copy.constantSpeed = self.constantSpeed
   copy.constantSpeed = self.constantSpeed