mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 22:06:40 +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
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue