CDBViewQuantity shouldn't crash in the editor.

--HG--
branch : dfighter-tools
hg/compatibility
dfighter1985 10 years ago
parent d2ca66c574
commit 0ac94e3e72

@ -156,6 +156,8 @@ namespace NLGUI
// ***************************************************************************
void CDBViewQuantity::draw ()
{
if( _Number.hasValue() && _NumberMax.hasValue() )
{
// change text
sint32 val= _Number.getSInt32();
@ -166,6 +168,7 @@ namespace NLGUI
_CacheMax=valMax;
buildTextFromCache();
}
}
// parent call
CViewText::draw();

Loading…
Cancel
Save