add get main title check isValid()

This commit is contained in:
vcaesar 2018-08-23 10:42:23 -04:00
parent 1bb08731d1
commit de0ebaaf3c

View File

@ -571,6 +571,9 @@ void CloseWin(void){
}
char* get_main_title(){
// Check if the window is valid
if (!IsValid()) {return "IsValid failed.";}
return get_title_by_hand(mData);
}