summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vehicles/Plane.cpp4
-rw-r--r--src/vehicles/Plane.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/vehicles/Plane.cpp b/src/vehicles/Plane.cpp
index cfe33556..b4d80581 100644
--- a/src/vehicles/Plane.cpp
+++ b/src/vehicles/Plane.cpp
@@ -958,8 +958,8 @@ CPlane::CreateDropOffCesna(void)
printf("CPlane::CreateDropOffCesna(void)\n");
}
-CVector CPlane::FindDrugPlaneCoordinates(void) { return pDrugRunCesna->GetPosition(); }
-CVector CPlane::FindDropOffCesnaCoordinates(void) { return pDropOffCesna->GetPosition(); }
+const CVector CPlane::FindDrugPlaneCoordinates(void) { return pDrugRunCesna->GetPosition(); }
+const CVector CPlane::FindDropOffCesnaCoordinates(void) { return pDropOffCesna->GetPosition(); }
bool CPlane::HasCesnaLanded(void) { return CesnaMissionStatus == CESNA_STATUS_LANDED; }
bool CPlane::HasCesnaBeenDestroyed(void) { return CesnaMissionStatus == CESNA_STATUS_DESTROYED; }
bool CPlane::HasDropOffCesnaBeenShotDown(void) { return DropOffCesnaMissionStatus == CESNA_STATUS_DESTROYED; }
diff --git a/src/vehicles/Plane.h b/src/vehicles/Plane.h
index eddbc2cd..edca92ec 100644
--- a/src/vehicles/Plane.h
+++ b/src/vehicles/Plane.h
@@ -59,8 +59,8 @@ public:
static bool TestRocketCollision(CVector *rocketPos);
static void CreateIncomingCesna(void);
static void CreateDropOffCesna(void);
- static CVector FindDrugPlaneCoordinates(void);
- static CVector FindDropOffCesnaCoordinates(void);
+ static const CVector FindDrugPlaneCoordinates(void);
+ static const CVector FindDropOffCesnaCoordinates(void);
static bool HasCesnaLanded(void);
static bool HasCesnaBeenDestroyed(void);
static bool HasDropOffCesnaBeenShotDown(void);