From 2036485b434b5c1e0ca7ee18a38f2084f71af4ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Mon, 11 Apr 2016 22:17:15 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20bug=20=C3=A9diteur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/editor.cpp b/src/editor.cpp index 5566707..245c150 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -483,6 +483,7 @@ void Editor::test() { // copie des objets du niveau vers le jeu std::vector& objects = getObjects(); + game->getObjects().clear(); for (auto it = objects.begin(); it != objects.end(); it++) { game->addObject((*it)->clone()); @@ -490,6 +491,7 @@ void Editor::test() { // copie de la zone de jeu std::vector& zone = getZone(); + game->getZone().clear(); for (auto it = zone.begin(); it != zone.end(); it++) { game->getZone().push_back(*it);