removed several bad casts to 'long'.
The 'long' type should generally be avoided because its size differs on Windows and Linux/Mac so it is almost guaranteed to cause undefined behavior
This commit is contained in:
parent
48ba63c022
commit
ab8711b57a
15 changed files with 29 additions and 27 deletions
|
|
@ -1049,7 +1049,7 @@ static void PrintSecretString(const char *string, bool thislevel)
|
|||
}
|
||||
else if (string[1] == 'T' || string[1] == 't')
|
||||
{
|
||||
long tid = (long)strtoll(string+2, (char**)&string, 10);
|
||||
int tid = (int)strtoll(string+2, (char**)&string, 10);
|
||||
if (*string == ';') string++;
|
||||
auto it = primaryLevel->GetActorIterator(tid);
|
||||
AActor *actor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue