1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-09 01:06:07 +02:00

Correctly update drag-and-drop cursor if our window gets deactivated

This commit is contained in:
Ivan Savenko
2022-12-18 14:34:38 +02:00
parent 526a6e4fe7
commit 57dba9433c
3 changed files with 21 additions and 0 deletions

View File

@ -67,6 +67,8 @@ void CCursorHandler::initCursor()
void CCursorHandler::changeGraphic(ECursor::ECursorTypes type, int index)
{
assert(dndObject == nullptr);
if(type != this->type)
{
this->type = type;