NULL check
This commit is contained in:
1 parent
2dbc570f15
commit
9e547bcb98
1 file changed
+1
-1
@@ -1815,7 +1815,7 @@ LOG_ERROR("last_games from db = " << dbPlayerData.last_games);
|
||||
std::vector<long> last_games;
|
||||
std::stringstream ss(dbPlayerData.last_games);
|
||||
for (long i; ss >> i;) {
|
||||
if(i != NULL)
|
||||
if(!i.is_null())
|
||||
last_games.push_back(i);
|
||||
if (ss.peek() == ',')
|
||||
ss.ignore();
|
||||
|
||||
Reference in new issue
Block a user