Sfoglia il codice sorgente

Fixed String.FromChar( 0 ) bug.

Mark Sibly 9 anni fa
parent
commit
ea35f5225f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      modules/monkey/native/bbstring.cpp

+ 1 - 1
modules/monkey/native/bbstring.cpp

@@ -93,7 +93,7 @@ const char *bbString::c_str()const{
 
 bbString bbString::fromChar( int chr ){
 	bbChar buf[]={(bbChar)chr,0};
-	return buf;
+	return bbString( buf,1 );
 }
 
 bbString bbString::fromCString( const void *data,int size ){