summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-13 23:08:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-13 23:08:46 +0300
commit02e9a62ce9a0f288804bfa2aa59c3a84b0376c4a (patch)
treeb029ec4c7196685d6a0331835640125e00829e08 /src
parentd74ca472f54ae0f5c69ba6a377d896234725df70 (diff)
downloadManaVerse-02e9a62ce9a0f288804bfa2aa59c3a84b0376c4a.tar.gz
ManaVerse-02e9a62ce9a0f288804bfa2aa59c3a84b0376c4a.tar.bz2
ManaVerse-02e9a62ce9a0f288804bfa2aa59c3a84b0376c4a.tar.xz
ManaVerse-02e9a62ce9a0f288804bfa2aa59c3a84b0376c4a.zip
Fix to avoid false positives in automatic checking software.
Diffstat (limited to 'src')
-rw-r--r--src/graphicsvertexes.cpp9
-rw-r--r--src/graphicsvertexes.h9
2 files changed, 10 insertions, 8 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp
index 4a299620d..a74d6558b 100644
--- a/src/graphicsvertexes.cpp
+++ b/src/graphicsvertexes.cpp
@@ -234,6 +234,15 @@ std::vector<DoubleRect*> *GraphicsVertexes::getRectsSDL()
return &sdl[mPtr].mList;
}
+ImageVertexes::ImageVertexes() :
+ image(nullptr)
+{
+ sdl.reserve(30);
+#ifdef USE_OPENGL
+ ogl = new OpenGLGraphicsVertexes();
+#endif
+}
+
ImageVertexes::~ImageVertexes()
{
delete_all(sdl);
diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h
index 452cebc29..a4ce65013 100644
--- a/src/graphicsvertexes.h
+++ b/src/graphicsvertexes.h
@@ -123,14 +123,7 @@ typedef std::vector<DoubleRect*> DoubleRects;
class ImageVertexes
{
public:
- ImageVertexes() :
- image(nullptr)
- {
- sdl.reserve(30);
-#ifdef USE_OPENGL
- ogl = new OpenGLGraphicsVertexes();
-#endif
- }
+ ImageVertexes();
~ImageVertexes();