Fixed use of 'This' to 'Game::game()' in Actor.
authorTegmine <emilyteng55@gmail.com>
Sat, 3 Mar 2012 22:00:04 +0000 (16:00 -0600)
committerTegmine <emilyteng55@gmail.com>
Sat, 3 Mar 2012 22:00:04 +0000 (16:00 -0600)
Actor.cpp

index ad68834..9ae069d 100644 (file)
--- a/Actor.cpp
+++ b/Actor.cpp
@@ -1,4 +1,5 @@
 #include "Actor.h"
+#include "Game.h"
 //the beggining
 Actor::Actor(Animation *anim):
        mFrame(0),
@@ -19,5 +20,5 @@ Actor::Actor(std::vector<string> anims):
        mCurrentAnimation(0)
 {
        for(int i=0; i<anims.size(); i++)
-               mAnimations.Add(This.Game.CurrentLevel.GetAnimation(anim));
+               mAnimations.push_back(Game::game()->CurrentLevel.GetAnimation(anim));
 }
\ No newline at end of file