mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-31 01:15:48 -04:00
fix some things cppcheck found...some are TODO because i don't feel like investigating them
This commit is contained in:
@@ -79,7 +79,7 @@ bool ConsoleCommandParserGame::performParsing(const NetworkId & track, const Str
|
||||
if(argv.size() > 2)
|
||||
{
|
||||
unsigned int pid;
|
||||
sscanf(Unicode::wideToNarrow(argv[2]).c_str(), "%d", &pid);
|
||||
sscanf(Unicode::wideToNarrow(argv[2]).c_str(), "%u", &pid);
|
||||
GameServerConnection * gameConn = CentralServer::getInstance().getGameServer(pid);
|
||||
if(gameConn)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user