mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:53:50 +00:00
Avoid possible null dereferencing
This commit is contained in:
parent
33648313a6
commit
c9b885ffd4
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ CSMWorld::UniversalId CSVWorld::DragDropUtils::getAcceptedData(const QDropEvent
|
||||||
{
|
{
|
||||||
if (canAcceptData(event, type))
|
if (canAcceptData(event, type))
|
||||||
{
|
{
|
||||||
return getTableMimeData(event)->returnMatching(type);
|
if (const CSMWorld::TableMimeData *data = getTableMimeData(event))
|
||||||
|
return data->returnMatching(type);
|
||||||
}
|
}
|
||||||
return CSMWorld::UniversalId::Type_None;
|
return CSMWorld::UniversalId::Type_None;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue