Fix font changing in notifications not working

Addresses https://github.com/JetBoom/zombiesurvival/issues/177
This commit is contained in:
William Moodhe 2016-08-10 08:26:45 -04:00 committed by GitHub
parent 69afb7239a
commit f6e92a3ef7

View file

@ -84,7 +84,7 @@ function PANEL:SetNotification(...)
defaultfont = nil defaultfont = nil
else else
local th = draw.GetFontHeight(v.font) local th = draw.GetFontHeight(v.font)
if tw then if th then
defaultfont = v.font defaultfont = v.font
end end
end end