Must change UIMap class checks to UIGameMap.

This commit is contained in:
BenDol
2014-06-07 05:05:57 +12:00
parent c083d02bef
commit 99b1ddf44c
3 changed files with 4 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ function UIItem:onHoverChange(hovered)
local draggingWidget = g_ui.getDraggingWidget()
if draggingWidget and self ~= draggingWidget then
local gotMap = draggingWidget:getClassName() == 'UIMap'
local gotMap = draggingWidget:getClassName() == 'UIGameMap'
local gotItem = draggingWidget:getClassName() == 'UIItem' and not draggingWidget:isVirtual()
if hovered and (gotItem or gotMap) then
self:setBorderWidth(1)