]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/sg_time.hxx
Fix a bug in cloud texture state loading which caused the cloud textures to
[simgear.git] / simgear / timing / sg_time.hxx
index f2bab45aff35d83e9bae408e5a0b894475a6c0c6..fa0ab060722e789736a73dc8aa7018298ed017ae 100644 (file)
@@ -72,7 +72,7 @@ private:
     TimezoneContainer* tzContainer;
 
     // Points to the current local timezone name;
-    char *zonename;
+    string zonename;
 
     // Unix "calendar" time in seconds
     time_t cur_time;
@@ -170,7 +170,7 @@ public:
     inline time_t get_cur_time() const { return cur_time; };
 
     /** @return time zone name for your current position*/
-    inline char* get_zonename() const { return zonename; }
+    inline const char * get_zonename() const { return zonename.c_str(); }
 
     /** @return GMT in a "brokent down" tm structure */
 #if defined(_MSC_VER) || defined(__MINGW32__)