forked from mirror/openmw-tes3mp
Attempt to silence warning
This commit is contained in:
parent
0d439750a2
commit
0fbc0d0da7
1 changed files with 5 additions and 3 deletions
|
@ -79,12 +79,13 @@ void WindowModal::close()
|
||||||
NoDrop::NoDrop(DragAndDrop *drag, MyGUI::Widget *widget)
|
NoDrop::NoDrop(DragAndDrop *drag, MyGUI::Widget *widget)
|
||||||
: mWidget(widget), mDrag(drag), mTransparent(false)
|
: mWidget(widget), mDrag(drag), mTransparent(false)
|
||||||
{
|
{
|
||||||
if (!mWidget)
|
|
||||||
throw std::runtime_error("NoDrop needs a non-NULL widget!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void NoDrop::onFrame(float dt)
|
void NoDrop::onFrame(float dt)
|
||||||
{
|
{
|
||||||
|
if (!mWidget)
|
||||||
|
return;
|
||||||
|
|
||||||
MyGUI::IntPoint mousePos = MyGUI::InputManager::getInstance().getMousePosition();
|
MyGUI::IntPoint mousePos = MyGUI::InputManager::getInstance().getMousePosition();
|
||||||
|
|
||||||
if (mDrag->mIsOnDragAndDrop)
|
if (mDrag->mIsOnDragAndDrop)
|
||||||
|
@ -113,5 +114,6 @@ void NoDrop::onFrame(float dt)
|
||||||
|
|
||||||
void NoDrop::setAlpha(float alpha)
|
void NoDrop::setAlpha(float alpha)
|
||||||
{
|
{
|
||||||
mWidget->setAlpha(alpha);
|
if (mWidget)
|
||||||
|
mWidget->setAlpha(alpha);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue