fix some warning

This commit is contained in:
idea4good
2019-11-12 10:25:04 +08:00
parent ff66d3fa4d
commit 1cd90eadef
2 changed files with 1 additions and 7 deletions

View File

@@ -112,10 +112,7 @@ int c_dialog::set_me_the_dialog()
if(ms_the_dialogs[i].surface == 0)
{
ms_the_dialogs[i].dialog = this;
if(this)
{
ms_the_dialogs[i].surface = surface;
}
ms_the_dialogs[i].surface = surface;
return 1;
}
}