From 45a3d59bb7d06b2d0245e2b7f45b03cc6021d5b9 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Mon, 1 Nov 2010 04:29:41 +0100 Subject: [PATCH] Elusive CSG bug finally squashed --- src/state.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.h b/src/state.h index 512586d1..ae25c0f0 100644 --- a/src/state.h +++ b/src/state.h @@ -15,7 +15,7 @@ public: void setPostfix(bool on) { this->ispostfix = on; } void setNumChildren(unsigned int numc) { this->numchildren = numc; } void setParent(const AbstractNode *parent) { this->parentnode = parent; } - void setMatrix(const double m[20]) { memcpy(this->m, m, sizeof(m)); } + void setMatrix(const double m[20]) { memcpy(this->m, m, 20*sizeof(m)); } bool isPrefix() const { return this->isprefix; } bool isPostfix() const { return this->ispostfix; }