1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-30 16:20:21 +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."); throw std::runtime_error("The argument must be a player.");
return MWBase::Environment::get().getWorld()->isTeleportingEnabled(); 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()) if (player.ptr() != MWBase::Environment::get().getWorld()->getPlayerPtr())
throw std::runtime_error("The argument must be a player."); throw std::runtime_error("The argument must be a player.");
if (dynamic_cast<const LObject*>(&player) && !dynamic_cast<const SelfObject*>(&player)) if (dynamic_cast<const LObject*>(&player) && !dynamic_cast<const SelfObject*>(&player))