Parcourir la source

Added an assertion

ocornut il y a 11 ans
Parent
commit
23d156908d
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -2495,6 +2495,7 @@ void TextUnformatted(const char* text, const char* text_end)
     if (window->SkipItems)
         return;
 
+	IM_ASSERT(text != NULL);
     const char* text_begin = text;
     if (text_end == NULL)
         text_end = text + strlen(text);