Просмотр исходного кода

Fehler bei der Initialisierung von Objektdaten neuer Objekte behoben

Kolja Strohm 7 лет назад
Родитель
Сommit
5f75de9818
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Asteroids/Editor/Interface/RightTools/ObjektOptionen/ObjektOptionen.cpp

+ 2 - 2
Asteroids/Editor/Interface/RightTools/ObjektOptionen/ObjektOptionen.cpp

@@ -48,9 +48,9 @@ ObjektTool::ObjektTool( Schrift *zSchrift, KarteDaten *daten )
                 {
                 {
                     if( !texturPath )
                     if( !texturPath )
                         return;
                         return;
-                    ObjektDaten o;
-                    this->daten->getResourceIdFromPath( modelPath, [ this, &o, texturPath ]( int id )
+                    this->daten->getResourceIdFromPath( modelPath, [ this, texturPath ]( int id )
                     {
                     {
+                        ObjektDaten o = ObjektDaten();
                         o.m2d = id;
                         o.m2d = id;
                         this->daten->getResourceIdFromPath( texturPath, [ this, &o ]( int id )
                         this->daten->getResourceIdFromPath( texturPath, [ this, &o ]( int id )
                         {
                         {