[Fix] Clean up unidiffs when they fail to apply properly.
This commit is contained in:
parent
0dd49b7f5b
commit
cc580f9b7a
@ -26,17 +26,17 @@
|
|||||||
<crew>10</crew>
|
<crew>10</crew>
|
||||||
<mass>95</mass>
|
<mass>95</mass>
|
||||||
<fuel>1000000</fuel>
|
<fuel>1000000</fuel>
|
||||||
<cap_weapon>800</cap_weapon>
|
<cap_weapon>80000</cap_weapon>
|
||||||
<cap_cargo>6000</cap_cargo>
|
<cap_cargo>600000</cap_cargo>
|
||||||
</characteristics>
|
</characteristics>
|
||||||
<outfits>
|
<outfits>
|
||||||
<outfit quantity="1">Lancelot Fighter Bay</outfit>
|
<outfit quantity="1">Lancelot Fighter Bay</outfit>
|
||||||
<outfit quantity="2">Lancelot Fighter</outfit>
|
<outfit quantity="100">Lancelot Fighter</outfit>
|
||||||
<outfit quantity="2">Ripper MK2</outfit>
|
<outfit quantity="2">Ripper MK2</outfit>
|
||||||
<outfit quantity="2">Ragnarok Beam</outfit>
|
<outfit quantity="2">Ragnarok Beam</outfit>
|
||||||
<outfit quantity="2">Orion Beam</outfit>
|
<outfit quantity="2">Orion Beam</outfit>
|
||||||
<outfit quantity="1">Headhunter Launcher</outfit>
|
<outfit quantity="1">Headhunter Launcher</outfit>
|
||||||
<outfit quantity="20">Headhunter</outfit>
|
<outfit quantity="100">Headhunter</outfit>
|
||||||
</outfits>
|
</outfits>
|
||||||
</ship>
|
</ship>
|
||||||
<ship name="Llama">
|
<ship name="Llama">
|
||||||
|
@ -187,6 +187,10 @@ int diff_apply(char* name) {
|
|||||||
}
|
}
|
||||||
} while(xml_nextNode(node));
|
} while(xml_nextNode(node));
|
||||||
|
|
||||||
|
/* More clean up. */
|
||||||
|
xmlFreeDoc(doc);
|
||||||
|
free(buf);
|
||||||
|
|
||||||
WARN("UniDiff '%s' not found in "DIFF_DATA".", name);
|
WARN("UniDiff '%s' not found in "DIFF_DATA".", name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user