Fix assert when loading file with multiple windows opened
authorClément Foucault <foucault.clem@gmail.com>
Mon, 23 Jul 2018 15:44:16 +0000 (17:44 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Mon, 23 Jul 2018 15:44:34 +0000 (17:44 +0200)
commit8876e3aae25ad0e74baf362413b0fd113aa5b638
treec9ee45b7aa42e81a1c22cc5927e8d0cb520f2df5
parent87090abb95263eb2eb830face64777a0eb3e7957
Fix assert when loading file with multiple windows opened

... or when loading a file when having more windows opened than the file
itself.
source/blender/windowmanager/intern/wm_files.c
source/blender/windowmanager/intern/wm_window.c
source/blender/windowmanager/wm_window.h