This commit is contained in:
SkyHasACat 2025-08-01 09:01:33 -07:00
parent b0e2265858
commit 0170f38d93

View File

@ -568,7 +568,7 @@ namespace MWLua
objectT["setRotation"] = [context](const GObject& object, const sol::object& newRotObj) { objectT["setRotation"] = [context](const GObject& object, const sol::object& newRotObj) {
if (newRotObj == sol::nil) if (newRotObj == sol::nil)
{ {
throw std::runtime_error("setTransform requires a non-nil rotation argument"); throw std::runtime_error("setRotation requires a non-nil rotation argument");
} }
MWWorld::Ptr ptr = object.ptr(); MWWorld::Ptr ptr = object.ptr();
if (ptr.getCellRef().getCount() == 0 || !ptr.isInCell()) if (ptr.getCellRef().getCount() == 0 || !ptr.isInCell())