From c45ce5cc4e54bdae2fd45a130d8957ec55b51b1b Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Fri, 9 Dec 2011 14:12:12 +0000 Subject: A few fixes recommended by PVS Studio --- Stars45/Ship.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Stars45/Ship.cpp') 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 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); -- cgit v1.1