diff options
author | Davide Beatrici <davidebeatrici@gmail.com> | 2017-01-22 18:00:49 +0300 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2017-01-22 18:20:56 +0300 |
commit | 6096b74a1c42cfeaca9cde5df76a21fc3174f167 (patch) | |
tree | b6ff23e1e5c7d2469236596f8450e1c4d10313b6 /plugins/ql | |
parent | e92b27b8ca219d57a9ba689a8a2b4cb32fdb8896 (diff) |
plugins: Fix MinGW compilation warnings and errors
warning: converting to non-pointer type 'procptr32_t {aka long unsigned int}' from NULL [-Wconversion-null]
ql\ql.cpp:87: warning: comparison is always true due to limited range of data type [-Wtype-limits]
sto\sto.cpp:11: error: 'numeric_limits' is not a member of 'std'
Not fixed:
sto\sto.cpp:55: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Diffstat (limited to 'plugins/ql')
-rw-r--r-- | plugins/ql/ql.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ql/ql.cpp b/plugins/ql/ql.cpp index 03d5ea098..64da7c470 100644 --- a/plugins/ql/ql.cpp +++ b/plugins/ql/ql.cpp @@ -84,7 +84,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa } // Team - if (team >= 0 && team <= 3) { + if (team <= 3) { if (team == 0) oidentity << std::endl << "\"Team\": \"FFA\""; // If team value is 0, set "FFA" as team in identity. if (team == 1) |