CDBViewQuantity shouldn't crash in the editor.

This commit is contained in:
dfighter1985 2014-10-20 22:49:46 +02:00
parent 2e0f06f231
commit 836e2814d8

View file

@ -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();