yohanaugusto
New Member
- Joined
- Sep 28, 2008
- Messages
- 73
- Reaction score
- 0
When I compile in Windows, everything is ok. But when i compile in Linux i get segmentation fault (core dumped).
I found the cause of the problem, but couldn't fix it.
the problem is the "FOR". When i comment the lines, it works. But sometimes server crash..
I found the cause of the problem, but couldn't fix it.
the problem is the "FOR". When i comment the lines, it works. But sometimes server crash..
Code:
if (clients.size() > 0) {
for (auto& client : clients) {
client->setPlayer(this);
}
}
[code]