• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

C++ Compiling tfs 1.3

Dreww

Banned User
Joined
Oct 7, 2011
Messages
252
Reaction score
415
Location
México
How do i solve this warning and what is causing this?
e212efe9403cdf479b932f73d29a7aa7.png

Im using this Tfs: otland/forgottenserver
 
You can ignore it because I'am sure Mark know what he is doing so i don't think nothing may happen as well , or you can just CTRL+CLICK the line which have this error and then you will find 2 lines with uni16_t change it from uint16_t to int32_t in both of these lines ( the 2 lines are in different files ). I'am not sure this will solve the problem i didn't test.
 
You can cast it explicitly, then it should not shown anymore like this:

Code:
services->add<ProtocolGame>((uint16_t)g_config.getNumber(ConfigManager::GAME_PORT));
 
Back
Top