- Moved the localized unit name alternative if a name was not found to the Name tag ( I just took it out from the compilation step )

This commit is contained in:
cybeloras
2012-08-27 04:39:59 +00:00
parent dc1075b90a
commit 51ecd8115e

View File

@ -88,7 +88,7 @@ DogTag:AddTag("Unit", "Name", {
elseif unit:match("%d*vehicle%d*$") then
return VehicleName(unit)
end
return UnitName(unit)
return UnitName(unit) or DogTag.UnitToLocale[unit]
end,
arg = {
'unit', 'string;undef', 'player'