mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-04 04:20:51 +00:00
Add missing null check
This commit is contained in:
parent
19e07fad30
commit
e14573fa8c
@ -625,7 +625,7 @@ namespace MWGui
|
|||||||
void DialogueWindow::onFrame(float dt)
|
void DialogueWindow::onFrame(float dt)
|
||||||
{
|
{
|
||||||
checkReferenceAvailable();
|
checkReferenceAvailable();
|
||||||
if(mPtr.getTypeName() == typeid(ESM::NPC).name())
|
if(!mPtr.isEmpty() && mPtr.getTypeName() == typeid(ESM::NPC).name())
|
||||||
{
|
{
|
||||||
int disp = MWBase::Environment::get().getMechanicsManager()->getDerivedDisposition(mPtr);
|
int disp = MWBase::Environment::get().getMechanicsManager()->getDerivedDisposition(mPtr);
|
||||||
mDispositionBar->setProgressRange(100);
|
mDispositionBar->setProgressRange(100);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user