diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-12-09 09:47:05 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-12-09 09:47:05 +0000 |
| commit | 5ee4dc1fec60964593e1c7cec92ab72f0568afa6 (patch) | |
| tree | f996e17d0fe65a257302e0ed345283914d71d11b /src/game/server/srv_ctf.cpp | |
| parent | 482058e60c12af02d47d56409009084a405cdbf9 (diff) | |
| download | zcatch-5ee4dc1fec60964593e1c7cec92ab72f0568afa6.tar.gz zcatch-5ee4dc1fec60964593e1c7cec92ab72f0568afa6.zip | |
bug fixes in team games
Diffstat (limited to 'src/game/server/srv_ctf.cpp')
| -rw-r--r-- | src/game/server/srv_ctf.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/server/srv_ctf.cpp b/src/game/server/srv_ctf.cpp index 81f1bb84..04cf5d30 100644 --- a/src/game/server/srv_ctf.cpp +++ b/src/game/server/srv_ctf.cpp @@ -20,6 +20,7 @@ gameobject_ctf::gameobject_ctf() else { // report massive failure + flags[i] = 0; } } @@ -64,6 +65,9 @@ void gameobject_ctf::tick() { flag *f = flags[fi]; + if(!f) + continue; + // if(f->carrying_player) { |