1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Don't pass a nullptr to a std::string constructor

This is undefined behaviour.
This commit is contained in:
jvoisin 2021-08-29 14:47:08 +02:00
parent 4f99c060c3
commit db4fe11a44

View File

@ -428,7 +428,7 @@ namespace MWWorld
const ESM::WeaponType *search(const int id) const;
const ESM::WeaponType *find(const int id) const;
RecordId load(ESM::ESMReader &esm) override { return RecordId(nullptr, false); }
RecordId load(ESM::ESMReader &esm) override { return RecordId({}, false); }
ESM::WeaponType* insert(const ESM::WeaponType &weaponType);