OpenXcom Forum

Contributions => Programming => Topic started by: Eeyoocah5Moh on July 08, 2010, 04:02:18 pm

Title: small fix
Post by: Eeyoocah5Moh on July 08, 2010, 04:02:18 pm
Last update didn't compile without this. I think there should not be "Game::", gcc don't accept it.
Code: [Select]
Index: Game.h
===================================================================
--- Game.h (revision 95)
+++ Game.h (working copy)
@@ -63,7 +63,7 @@
  https:/// Gets the game's display screen.
  Screen *getScreen();
  https:/// Gets the game's states.
- list<State*> *Game::getStates();
+ list<State*> *getStates();
  https:/// Sets the game's 8bpp palette.
  void setPalette(SDL_Color *colors, int firstcolor = 0, int ncolors = 256);
  https:/// Resets the state stack to a new state.
@@ -86,4 +86,4 @@
  void setRuleset(Ruleset *rules);
 };
 
-#endif
\ No newline at end of file
+#endif
Title: Re: small fix
Post by: SupSuper on July 08, 2010, 11:17:17 pm
Fixed.

Visual Studio didn't mind so I missed it.