mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
Attempt to silence warning
This commit is contained in:
parent
0d439750a2
commit
0fbc0d0da7
@ -79,12 +79,13 @@ void WindowModal::close()
|
||||
NoDrop::NoDrop(DragAndDrop *drag, MyGUI::Widget *widget)
|
||||
: mWidget(widget), mDrag(drag), mTransparent(false)
|
||||
{
|
||||
if (!mWidget)
|
||||
throw std::runtime_error("NoDrop needs a non-NULL widget!");
|
||||
}
|
||||
|
||||
void NoDrop::onFrame(float dt)
|
||||
{
|
||||
if (!mWidget)
|
||||
return;
|
||||
|
||||
MyGUI::IntPoint mousePos = MyGUI::InputManager::getInstance().getMousePosition();
|
||||
|
||||
if (mDrag->mIsOnDragAndDrop)
|
||||
@ -113,5 +114,6 @@ void NoDrop::onFrame(float dt)
|
||||
|
||||
void NoDrop::setAlpha(float alpha)
|
||||
{
|
||||
mWidget->setAlpha(alpha);
|
||||
if (mWidget)
|
||||
mWidget->setAlpha(alpha);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user