mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 22:36:23 +00:00
Fix compiler warnings, explicitly cast by default
This commit is contained in:
@@ -33,13 +33,13 @@ void SetValues(const std::string& Line, int Index) {
|
||||
}
|
||||
Data = Data.substr(1);
|
||||
std::string::size_type sz;
|
||||
bool Boolean = std::string(Data).find("true") != -1;//searches for "true"
|
||||
bool FoundTrue = std::string(Data).find("true") != std::string::npos;//searches for "true"
|
||||
switch (Index) {
|
||||
case 1 :
|
||||
Debug = Boolean;//checks and sets the Debug Value
|
||||
Debug = FoundTrue;//checks and sets the Debug Value
|
||||
break;
|
||||
case 2 :
|
||||
Private = Boolean;//checks and sets the Private Value
|
||||
Private = FoundTrue;//checks and sets the Private Value
|
||||
break;
|
||||
case 3 :
|
||||
Port = std::stoi(Data, &sz);//sets the Port
|
||||
@@ -146,4 +146,4 @@ void InitConfig(){
|
||||
exit(0);
|
||||
}
|
||||
if(Debug)DebugData();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user