mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
Don't pass a nullptr to a std::string constructor
This is undefined behaviour.
This commit is contained in:
parent
4f99c060c3
commit
db4fe11a44
@ -428,7 +428,7 @@ namespace MWWorld
|
|||||||
const ESM::WeaponType *search(const int id) const;
|
const ESM::WeaponType *search(const int id) const;
|
||||||
const ESM::WeaponType *find(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);
|
ESM::WeaponType* insert(const ESM::WeaponType &weaponType);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user