Add pointer-check for cursor before update to avoid crash when window generation failed.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3758 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2011-05-26 19:42:57 +00:00
parent b5c52236f7
commit 07a43cfcaa
1 changed files with 2 additions and 1 deletions

View File

@ -843,7 +843,8 @@ bool CIrrDeviceLinux::run()
#ifdef _IRR_COMPILE_WITH_X11_
static_cast<CCursorControl*>(CursorControl)->update();
if ( CursorControl )
static_cast<CCursorControl*>(CursorControl)->update();
if ((CreationParams.DriverType != video::EDT_NULL) && display)
{