Răsfoiți Sursa

fix compilation errors

David Rose 17 ani în urmă
părinte
comite
a09a538878
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      panda/src/grutil/geoMipTerrain.I

+ 2 - 2
panda/src/grutil/geoMipTerrain.I

@@ -464,7 +464,7 @@ set_heightfield(const PNMImage &image) {
 }
 INLINE bool GeoMipTerrain::
 set_heightfield(const string &path) {
-  set_heightfield(Filename(path));
+  return set_heightfield(Filename(path));
 }
 
 ////////////////////////////////////////////////////////////////////
@@ -500,7 +500,7 @@ set_color_map(const Texture *tex) {
 }
 INLINE bool GeoMipTerrain::
 set_color_map(const string &path) {
-  set_heightfield(Filename(path));
+  return set_heightfield(Filename(path));
 }
 
 ////////////////////////////////////////////////////////////////////