Eliminated case-sensitivity in PlanetarySystem::find

pull/3/head
Chris Laurel 2001-03-17 00:18:30 +00:00
parent 2849b6f09a
commit ffa9dd4881
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@
#include <stdlib.h>
#include "mathlib.h"
#include "util.h"
#include "astro.h"
#include "body.h"
@ -270,7 +271,7 @@ Body* PlanetarySystem::find(string _name, bool deepSearch) const
{
for (int i = 0; i < satellites.size(); i++)
{
if (satellites[i]->getName() == _name)
if (compareIgnoringCase(satellites[i]->getName(), _name) == 0)
{
return satellites[i];
}