Explorar el Código

Resolved a compile warning
* Follow up to 716f6c0.
* Fixes #2738.
Thanks to @sader1992!

aleos hace 7 años
padre
commit
e385e167ab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/map/clif.cpp

+ 1 - 1
src/map/clif.cpp

@@ -6210,7 +6210,7 @@ void clif_GlobalMessage(struct block_list* bl, const char* message, enum send_ta
 	std::unique_ptr<char> buf(new char[8+len]);
 
 	WBUFW(buf.get(),0)=0x8d;
-	WBUFW(buf.get(),2)=static_cast<int>(len+8);
+	WBUFW(buf.get(),2)=static_cast<uint16>(len+8);
 	WBUFL(buf.get(),4)=bl->id;
 	safestrncpy(WBUFCP(buf.get(),8),message,len);