]> ruin.nu Git - hbs.git/blobdiff - bs/fleet.cpp
last minute bug.. ;P
[hbs.git] / bs / fleet.cpp
index 545ffa2e43d094fe09a3490d85d13dacebc29e49..7070dae6d2a719c3162c5d2113237fa4a84b4383 100644 (file)
@@ -465,7 +465,7 @@ void Fleet::takeEMP(std::string unittype, int number)
 
                        for (map<string, int*>::iterator j = targets.begin(); j != targets.end(); ++j)
                        {
-                               int maxguns = (*j->second)/total * guns;
+                               float maxguns = float((*j->second))/total * guns;
                                cerr << "Now shooting at target: " << j->first << endl;
 
                                double k = maxguns;