forked from teamnwah/openmw-tes3coop
various fixes
This commit is contained in:
parent
6643674b13
commit
d7af9fbec6
2 changed files with 4 additions and 3 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <stdexcept>
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
#include <iterator>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
|
|
@ -9,11 +9,11 @@ namespace MWWorld
|
|||
{
|
||||
FailedAction::FailedAction (const std::string& msg) : Action (false), message(msg)
|
||||
{ }
|
||||
|
||||
|
||||
|
||||
|
||||
void FailedAction::executeImp (const Ptr& actor)
|
||||
{
|
||||
if ( actor.getRefData().getHandle()=="player" and !(message.empty()))
|
||||
if ( actor.getRefData().getHandle()=="player" && !(message.empty()))
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager() ->messageBox(message, std::vector<std::string>());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue