Skip to content

Commit

Permalink
Merge branch 'scroll_fix' into 'master'
Browse files Browse the repository at this point in the history
Fix recordDraft isScroll for types.book in lua

See merge request OpenMW/openmw!3456
  • Loading branch information
psi29a committed Sep 27, 2023
2 parents 0e4a599 + cde2b49 commit 937f948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/openmw/mwlua/types/book.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace
if (rec["value"] != sol::nil)
book.mData.mValue = rec["value"];
if (rec["isScroll"] != sol::nil)
book.mData.mIsScroll = rec["isScroll"];
book.mData.mIsScroll = rec["isScroll"] ? 1 : 0;

if (rec["skill"] != sol::nil)
{
Expand Down

0 comments on commit 937f948

Please sign in to comment.