diff --git a/apps/openmw/mwworld/store.cpp b/apps/openmw/mwworld/store.cpp index 870c2a60c9..12c45e947d 100644 --- a/apps/openmw/mwworld/store.cpp +++ b/apps/openmw/mwworld/store.cpp @@ -269,12 +269,6 @@ namespace MWWorld list.push_back((*it)->mId); } } - template - inline bool shouldInsert(const IdType& id, const StaticMap& map) - { - auto it = map.find(id); - return it != map.end(); - } template T* TypedDynamicStore::insert(const T& item, bool overrideOnly) diff --git a/files/lua_api/openmw/types.lua b/files/lua_api/openmw/types.lua index e85da3f0f6..6e1bee5ab4 100644 --- a/files/lua_api/openmw/types.lua +++ b/files/lua_api/openmw/types.lua @@ -876,10 +876,10 @@ -- @field [parent=#NPC] #NpcStats stats --- --- Creates a @{#NpcRecord} without adding it to the world database. +-- Creates an @{#NpcRecord} without adding it to the world database. -- Use @{openmw_world#(world).createRecord} to add the record to the world. -- @function [parent=#NPC] createRecordDraft --- @param #NpcRecord book A Lua table with the fields of a NpcRecord, with an optional field `template` that accepts a @{#NpcRecord} as a base. +-- @param #NpcRecord npc A Lua table with the fields of an NpcRecord, with an optional field `template` that accepts an @{#NpcRecord} as a base. -- @return #NpcRecord A strongly typed NPC record. ---