Author: sapient
Date: Sat May  5 19:31:46 2007
New Revision: 17339

URL: http://svn.gna.org/viewcvs/wesnoth?rev=17339&view=rev
Log:
insert a FIXME for r17332

Modified:
    trunk/src/gamestatus.hpp

Modified: trunk/src/gamestatus.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gamestatus.hpp?rev=17339&r1=17338&r2=17339&view=diff
==============================================================================
--- trunk/src/gamestatus.hpp (original)
+++ trunk/src/gamestatus.hpp Sat May  5 19:31:46 2007
@@ -157,7 +157,7 @@
 class gamestatus
 {
 public:
-       gamestatus(const config& time_cfg, int num_turns, game_state* s_o_g = 
0);
+       gamestatus(const config& time_cfg, int num_turns, game_state* s_o_g = 
NULL);
        void write(config& cfg) const;
 
        time_of_day get_time_of_day() const;
@@ -175,7 +175,10 @@
        bool next_turn();
        
        static bool is_start_ToD(const std::string&);
-     const game_state& sog() const{return(*state_of_game_);}
+
+       //FIXME: since gamestatus may be constructed with NULL game_state* (by 
default), 
+       //you should not rely on this function to return the current game_state
+       const game_state& sog() const{return(*state_of_game_);}
 
        std::vector<team> *teams;
 
@@ -197,7 +200,7 @@
        size_t turn_;
        int numTurns_;
        int currentTime_;
-     const game_state* state_of_game_;
+       const game_state* state_of_game_;
 };
 
 //object which holds all the data needed to start a scenario.


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to