mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Fix case issue when setting companion's profit on the script
This commit is contained in:
parent
e54ba2c5d1
commit
04c79d5f1e
2 changed files with 5 additions and 2 deletions
|
@ -148,7 +148,7 @@ void CompanionWindow::onMessageBoxButtonClicked(int button)
|
|||
if (button == 0)
|
||||
{
|
||||
mPtr.getRefData().getLocals().setVarByInt(mPtr.getClass().getScript(mPtr),
|
||||
"minimumProfit", mPtr.getClass().getNpcStats(mPtr).getProfit());
|
||||
"minimumprofit", mPtr.getClass().getNpcStats(mPtr).getProfit());
|
||||
|
||||
MWBase::Environment::get().getWindowManager()->removeGuiMode(GM_Companion);
|
||||
MWBase::Environment::get().getDialogueManager()->startDialogue (mPtr);
|
||||
|
|
|
@ -24,8 +24,11 @@ namespace MWScript
|
|||
bool isEmpty() const;
|
||||
|
||||
void configure (const ESM::Script& script);
|
||||
/// @note var needs to be in lowercase
|
||||
bool setVarByInt(const std::string& script, const std::string& var, int val);
|
||||
int getIntVar (const std::string& script, const std::string& var); ///< if var does not exist, returns 0
|
||||
int getIntVar (const std::string& script, const std::string& var);
|
||||
///< if var does not exist, returns 0
|
||||
/// @note var needs to be in lowercase
|
||||
|
||||
void write (ESM::Locals& locals, const std::string& script) const;
|
||||
|
||||
|
|
Loading…
Reference in a new issue