Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/windowmanager/intern/wm_cursors.c')
-rw-r--r--source/blender/windowmanager/intern/wm_cursors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_cursors.c b/source/blender/windowmanager/intern/wm_cursors.c
index ab49c8a34bf..966bc8b3285 100644
--- a/source/blender/windowmanager/intern/wm_cursors.c
+++ b/source/blender/windowmanager/intern/wm_cursors.c
@@ -156,7 +156,7 @@ void WM_cursor_restore(wmWindow *win)
void WM_cursor_wait(int val)
{
wmWindowManager *wm= G.main->wm.first;
- wmWindow *win= wm->windows.first;
+ wmWindow *win= wm?wm->windows.first:NULL;
for(; win; win= win->next) {
if(val) {