mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-06 08:45:32 +00:00
Fix a couple of Clang warnings
This commit is contained in:
parent
cf5c5b146d
commit
aed7c1b2bb
2 changed files with 8 additions and 2 deletions
|
@ -1064,7 +1064,13 @@ namespace MWScript
|
||||||
runtime.pop();
|
runtime.pop();
|
||||||
|
|
||||||
const ESM::Spell* spell = MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find (spellId);
|
const ESM::Spell* spell = MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find (spellId);
|
||||||
if (spell && spell->mData.mType != ESM::Spell::ST_Spell && spell->mData.mType != ESM::Spell::ST_Power)
|
if (!spell)
|
||||||
|
{
|
||||||
|
runtime.getContext().report("spellcasting failed: can not find spell \""+spellId+"\"");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (spell->mData.mType != ESM::Spell::ST_Spell && spell->mData.mType != ESM::Spell::ST_Power)
|
||||||
{
|
{
|
||||||
runtime.getContext().report("spellcasting failed: you can cast only spells and powers.");
|
runtime.getContext().report("spellcasting failed: you can cast only spells and powers.");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -525,7 +525,7 @@ namespace MWWorld
|
||||||
/// @note throws an exception when invoked on a teleport door
|
/// @note throws an exception when invoked on a teleport door
|
||||||
void activateDoor(const MWWorld::Ptr& door, int state) override;
|
void activateDoor(const MWWorld::Ptr& door, int state) override;
|
||||||
|
|
||||||
void getActorsStandingOn (const MWWorld::ConstPtr& object, std::vector<MWWorld::Ptr> &actors); ///< get a list of actors standing on \a object
|
void getActorsStandingOn (const MWWorld::ConstPtr& object, std::vector<MWWorld::Ptr> &actors) override; ///< get a list of actors standing on \a object
|
||||||
bool getPlayerStandingOn (const MWWorld::ConstPtr& object) override; ///< @return true if the player is standing on \a object
|
bool getPlayerStandingOn (const MWWorld::ConstPtr& object) override; ///< @return true if the player is standing on \a object
|
||||||
bool getActorStandingOn (const MWWorld::ConstPtr& object) override; ///< @return true if any actor is standing on \a object
|
bool getActorStandingOn (const MWWorld::ConstPtr& object) override; ///< @return true if any actor is standing on \a object
|
||||||
bool getPlayerCollidingWith(const MWWorld::ConstPtr& object) override; ///< @return true if the player is colliding with \a object
|
bool getPlayerCollidingWith(const MWWorld::ConstPtr& object) override; ///< @return true if the player is colliding with \a object
|
||||||
|
|
Loading…
Reference in a new issue