Fixed stuffextract crash for some maps with compilation under VC80 and newer
This commit is contained in:
parent
5aeccb7a77
commit
24e62993df
@ -515,7 +515,8 @@ void ExtractMaps(void)
|
|||||||
printf("\nERROR: Map extraction failed: could not save file %s\n",wdt_out);
|
printf("\nERROR: Map extraction failed: could not save file %s\n",wdt_out);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
wdt_fh.write((char*)wdt_bb.contents(),wdt_bb.size());
|
if (wdt_bb.size())
|
||||||
|
wdt_fh.write((char*)wdt_bb.contents(),wdt_bb.size());
|
||||||
wdt_fh.close();
|
wdt_fh.close();
|
||||||
|
|
||||||
printf("Extracted WDT '%s'\n",wdt_name);
|
printf("Extracted WDT '%s'\n",wdt_name);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user