1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00

Don't attempt to change disposition for creatures

This commit is contained in:
scrawl 2014-01-11 21:30:09 +01:00
parent 3db299f1b2
commit 224f288359

View File

@ -318,6 +318,7 @@ namespace MWGui
messageBox("#{sNotifyMessage9}"); messageBox("#{sNotifyMessage9}");
int iBarterFailDisposition = gmst.find("iBarterFailDisposition")->getInt(); int iBarterFailDisposition = gmst.find("iBarterFailDisposition")->getInt();
if (mPtr.getClass().isNpc())
MWBase::Environment::get().getDialogueManager()->applyDispositionChange(iBarterFailDisposition); MWBase::Environment::get().getDialogueManager()->applyDispositionChange(iBarterFailDisposition);
return; return;
} }
@ -327,6 +328,7 @@ namespace MWGui
} }
int iBarterSuccessDisposition = gmst.find("iBarterSuccessDisposition")->getInt(); int iBarterSuccessDisposition = gmst.find("iBarterSuccessDisposition")->getInt();
if (mPtr.getClass().isNpc())
MWBase::Environment::get().getDialogueManager()->applyDispositionChange(iBarterSuccessDisposition); MWBase::Environment::get().getDialogueManager()->applyDispositionChange(iBarterSuccessDisposition);
// make the item transfer // make the item transfer