1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 10:39:41 +00:00

Removed unused var

This commit is contained in:
Zackhasacat 2023-10-26 11:50:50 -05:00
parent 3e31142c0b
commit 6a671186ee

View file

@ -143,7 +143,7 @@ namespace MWLua
throw std::runtime_error("The argument must be a player.");
return MWBase::Environment::get().getWorld()->isTeleportingEnabled();
};
player["setTeleportingEnabled"] = [context](const Object& player, bool state) {
player["setTeleportingEnabled"] = [](const Object& player, bool state) {
if (player.ptr() != MWBase::Environment::get().getWorld()->getPlayerPtr())
throw std::runtime_error("The argument must be a player.");
if (dynamic_cast<const LObject*>(&player) && !dynamic_cast<const SelfObject*>(&player))