Laupetin / OpenAssetTools

Open Source Modding Tools for old Call Of Duty games
https://openassettools.dev
GNU General Public License v3.0
94 stars 14 forks source link

fix: check for NULL string in stringtable check before dumping #171

Closed diamante0018 closed 6 months ago

diamante0018 commented 6 months ago

Hello,

when dumping zones generated by other tools, there is a small possibility that the string fields of the string table are empty.

This causes OAT to crash because it will try to build an std::string from a NULL char*

I have tested this PR post and pre fix with the following fastfile

plutonium_code_post_gfx_mp.zip