Explorar el Código

Fixes a compile warning
* Follow up to 5ef29be.
* Casts the size of the guild storage log to int16.

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

+ 1 - 1
src/map/clif.cpp

@@ -21020,7 +21020,7 @@ void clif_guild_storage_log( struct map_session_data* sd, std::vector<struct gui
 	int16 size = sizeof( struct PACKET_ZC_ACK_GUILDSTORAGE_LOG );
 
 	if( result == GUILDSTORAGE_LOG_FINAL_SUCCESS ){
-		size += log.size() * sizeof( struct PACKET_ZC_ACK_GUILDSTORAGE_LOG_sub );
+		size += static_cast<int16>(log.size()) * sizeof( struct PACKET_ZC_ACK_GUILDSTORAGE_LOG_sub );
 	}else{
 		log.clear();
 	}