Explorar o código

Update str.cpp

Fixed copy/paste error - now actually checks the parameter passed in....
RichardRanft %!s(int64=10) %!d(string=hai) anos
pai
achega
6c9cff4c68
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Engine/source/core/util/str.cpp

+ 1 - 1
Engine/source/core/util/str.cpp

@@ -659,7 +659,7 @@ bool String::isEmpty() const
 
 bool String::isEmpty(const char* str)
 {
-	return src == 0 || src[0] == '\0';
+	return str == 0 || str[0] == '\0';
 }
 
 bool String::isShared() const