diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-06-24 18:55:14 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-06-24 18:55:14 +0000 |
commit | 88a7e24d44695f49e1250a9314f03bf4c6e1cff8 (patch) | |
tree | b02bac4b5735ede954eb48e0a2cfbead900f1fa5 /Stars45/ShipAI.cpp | |
parent | 05f1b225a03adeab4cda01a6c96595359464ac0e (diff) | |
download | starshatter-5.1.87.zip starshatter-5.1.87.tar.gz starshatter-5.1.87.tar.bz2 |
A few PVS studio things5.1.87
Diffstat (limited to 'Stars45/ShipAI.cpp')
-rw-r--r-- | Stars45/ShipAI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Stars45/ShipAI.cpp b/Stars45/ShipAI.cpp index 27e12d3..876f067 100644 --- a/Stars45/ShipAI.cpp +++ b/Stars45/ShipAI.cpp @@ -101,6 +101,8 @@ ShipAI::GetWard() const void
ShipAI::SetWard(Ship* s)
{
+ if (ship == nullptr)
+ return;
if (s == ship->GetWard())
return;
|