From ed29944b91de68905ff11571aa8199897acc32c8 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 3 Mar 2004 19:54:24 +0000 Subject: [PATCH] Add const back in the function --- simgear/scene/material/mat.cxx | 2 +- simgear/scene/material/mat.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/scene/material/mat.cxx b/simgear/scene/material/mat.cxx index 76bb3820..5433a0f2 100644 --- a/simgear/scene/material/mat.cxx +++ b/simgear/scene/material/mat.cxx @@ -201,7 +201,7 @@ SGMaterial::load_texture ( int n ) } ssgSimpleState * -SGMaterial::get_state (int n) +SGMaterial::get_state (int n) const { if (_status.size() == 0) { SG_LOG( SG_GENERAL, SG_WARN, "No state available."); diff --git a/simgear/scene/material/mat.hxx b/simgear/scene/material/mat.hxx index 22cbe534..5f14a306 100644 --- a/simgear/scene/material/mat.hxx +++ b/simgear/scene/material/mat.hxx @@ -117,7 +117,7 @@ public: /** * Get the textured state. */ - virtual ssgSimpleState *get_state (int n = -1); + virtual ssgSimpleState *get_state (int n = -1) const; /** -- 2.39.5