diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-09 14:12:12 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-09 14:12:12 +0000 |
commit | c45ce5cc4e54bdae2fd45a130d8957ec55b51b1b (patch) | |
tree | e7ac533ff4006d455246d4e6d85a87f1966b9dd4 /Stars45/Ship.cpp | |
parent | ef83cdced6bc0fd4ee94f03237ad0201ef012a6b (diff) | |
download | starshatter-c45ce5cc4e54bdae2fd45a130d8957ec55b51b1b.zip starshatter-c45ce5cc4e54bdae2fd45a130d8957ec55b51b1b.tar.gz starshatter-c45ce5cc4e54bdae2fd45a130d8957ec55b51b1b.tar.bz2 |
A few fixes recommended by PVS Studio
Diffstat (limited to 'Stars45/Ship.cpp')
-rw-r--r-- | Stars45/Ship.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Stars45/Ship.cpp b/Stars45/Ship.cpp index f2ded5a..50555d2 100644 --- a/Stars45/Ship.cpp +++ b/Stars45/Ship.cpp @@ -4895,7 +4895,7 @@ Ship::ExecMaintFrame(double seconds) if (pwr != src) {
List<System> xfer;
- for (int j = 0; j < pwr->Clients().size(); i++) {
+ for (int j = 0; j < pwr->Clients().size(); j++) {
System* s = pwr->Clients().at(j);
if (s->GetSourceIndex() == isrc) {
@@ -4903,7 +4903,7 @@ Ship::ExecMaintFrame(double seconds) }
}
- for (int j = 0; j < xfer.size(); i++) {
+ for (int j = 0; j < xfer.size(); j++) {
System* s = xfer.at(j);
pwr->RemoveClient(s);
src->AddClient(s);
|