Skip to content

Commit

Permalink
Merge branch '8300_create_arrows_bolts' into 'master'
Browse files Browse the repository at this point in the history
Lua: Allow creating arrows and bolt records (#8300)

See merge request OpenMW/openmw!4514
  • Loading branch information
jvoisin committed Jan 13, 2025
2 parents 6ea3d11 + ffedd62 commit 7d47b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ message(STATUS "Configuring OpenMW...")
set(OPENMW_VERSION_MAJOR 0)
set(OPENMW_VERSION_MINOR 49)
set(OPENMW_VERSION_RELEASE 0)
set(OPENMW_LUA_API_REVISION 69)
set(OPENMW_LUA_API_REVISION 70)
set(OPENMW_POSTPROCESSING_API_REVISION 2)

set(OPENMW_VERSION_COMMITHASH "")
Expand Down
2 changes: 1 addition & 1 deletion apps/openmw/mwlua/types/weapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace
if (rec["type"] != sol::nil)
{
int weaponType = rec["type"].get<int>();
if (weaponType >= 0 && weaponType <= ESM::Weapon::MarksmanThrown)
if (weaponType >= 0 && weaponType <= ESM::Weapon::Last)
weapon.mData.mType = weaponType;
else
throw std::runtime_error("Invalid Weapon Type provided: " + std::to_string(weaponType));
Expand Down

0 comments on commit 7d47b22

Please sign in to comment.