瀏覽代碼

Fehler bei der Initialisierung von Objektdaten neuer Objekte behoben

Kolja Strohm 5 年之前
父節點
當前提交
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 )
                         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;
                         this->daten->getResourceIdFromPath( texturPath, [ this, &o ]( int id )
                         {