[email protected] 8 years ago
parent
commit
a2cdb99c4b
2 changed files with 5 additions and 4 deletions
  1. 3 3
      oxygine/src/WebImage.cpp
  2. 2 1
      oxygine/src/WebImage.h

+ 3 - 3
oxygine/src/WebImage.cpp

@@ -8,9 +8,9 @@
 
 namespace oxygine
 {
-
-    WebImage::WebImage(const WebImage& src, copyOptions opt) : Actor(src, opt)
+    void WebImage::copyFrom(const WebImage& src, cloneOptions opt)
     {
+        inherited::copyFrom(src, opt);
         _http = 0;
         _image = getChildT<Sprite>("_child_");
     }
@@ -150,4 +150,4 @@ namespace oxygine
     {
         inherited::deserialize(data);
     }
-}
+}

+ 2 - 1
oxygine/src/WebImage.h

@@ -2,6 +2,7 @@
 #include "oxygine-include.h"
 #include "Actor.h"
 #include "res/ResAnim.h"
+#include "HttpRequestTask.h"
 #include <string>
 
 namespace oxygine
@@ -11,7 +12,7 @@ namespace oxygine
     {
         INHERITED(Actor);
     public:
-        DECLARE_COPYCLONE(WebImage);
+        DECLARE_COPYCLONE_NEW(WebImage);
 
         WebImage();
         ~WebImage();