diff --git a/.DS_Store b/.DS_Store index 815a23f..4498e60 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/source/Sprite.cpp b/source/Sprite.cpp index a1ea7bd..e349509 100644 --- a/source/Sprite.cpp +++ b/source/Sprite.cpp @@ -97,10 +97,5 @@ void Sprite::setSpr(C2D_Sprite* newSpr) { } void Sprite::copy(Sprite* other) { - memcpy(&other->x, &this->x, sizeof(this->x)); - memcpy(&other->y, &this->y, sizeof(this->y)); - memcpy(&other->width, &this->width, sizeof(this->width)); - memcpy(&other->height, &this->height, sizeof(this->height)); - memcpy(other->center, this->center, sizeof(this->center)); - memcpy(&other->spr, &this->spr, sizeof(this->spr)); + memcpy(&other, this, sizeof(this)); } \ No newline at end of file diff --git a/source/main.cpp b/source/main.cpp index c138b36..1759d8b 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -185,7 +185,6 @@ int main(int argc, char* argv[]) { } - // Delete graphics C2D_SpriteSheetFree(spriteSheet); C2D_TextBufDelete(g_staticBuf);