aboutsummaryrefslogtreecommitdiff
path: root/cObject.cpp
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2019-01-06 16:33:36 +0100
committerGravatar jonas <himself@jonasgunz.de> 2019-01-06 16:33:36 +0100
commit1751c781621b644eda4bd2ebd8eb73fa2270e98e (patch)
treead3551ec75c3959b98d2c5ee3271615d99ed0835 /cObject.cpp
parent4912eb6946734a540a81cef97bcf0d418b73406f (diff)
downloadtermgl-1751c781621b644eda4bd2ebd8eb73fa2270e98e.tar.gz
Fixed double-free on exit
added make all
Diffstat (limited to 'cObject.cpp')
-rw-r--r--cObject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cObject.cpp b/cObject.cpp
index b293745..118fe6f 100644
--- a/cObject.cpp
+++ b/cObject.cpp
@@ -3,7 +3,6 @@
cObject::cObject(int _sx, int _sy)
{
bSizeSet = false;
- bBlockRender = true; //Block inherited render capabilities of parent
setSize(_sx, _sy);
}
@@ -47,6 +46,8 @@ void cObject::setSize(int _sx, int _sy)
if(bSizeSet)
return;
+ bBlockRender = true; //Block inherited render capabilities of parent
+
sizeX = _sx;
sizeY = _sy;