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:
parent
3e31142c0b
commit
6a671186ee
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user