64 LDObject* oldobj = obj; |
64 LDObject* oldobj = obj; |
65 |
65 |
66 // Reinterpret it from the text of the input field |
66 // Reinterpret it from the text of the input field |
67 obj = ParseLine (dlg.qContents->text ().toStdString ().c_str ()); |
67 obj = ParseLine (dlg.qContents->text ().toStdString ().c_str ()); |
68 |
68 |
69 printf ("object re-parsed, new type: %s\n", g_saObjTypeNames[obj->getType ()]); |
|
70 |
|
71 // Remove the old object |
69 // Remove the old object |
72 delete oldobj; |
70 delete oldobj; |
73 |
71 |
74 // Replace all instances of the old object with the new object |
72 // Replace all instances of the old object with the new object |
75 for (ulong i = 0; i < g_CurrentFile->objects.size(); ++i) { |
73 for (ulong i = 0; i < g_CurrentFile->objects.size(); ++i) { |