diff options
author | rubidium <rubidium@openttd.org> | 2008-07-18 16:40:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-07-18 16:40:29 +0000 |
commit | cde65455acbc10a3f64bb9d43c03b37cdf9b1c55 (patch) | |
tree | 82319a3d42401c6d6fa4944e99863807f05c6f5f /src/strings.cpp | |
parent | 56ad26a3aa231ede631d5bf8cf7e5132b2ff25a1 (diff) | |
download | openttd-cde65455acbc10a3f64bb9d43c03b37cdf9b1c55.tar.xz |
(svn r13731) -Codechange: make a pool of the array of players.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 4a68ae176..a82321111 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -959,7 +959,7 @@ static char* FormatString(char* buff, const char* str, const int64* argv, uint c PlayerID player = (PlayerID)GetInt32(&argv); /* Nothing is added for AI or inactive players */ - if (IsHumanPlayer(player) && IsValidPlayerID(player)) { + if (IsValidPlayerID(player) && IsHumanPlayer(player)) { int64 args[1]; args[0] = player + 1; buff = GetStringWithArgs(buff, STR_7002_PLAYER, args, last); |