diff options
author | deva <deva> | 2005-03-27 10:18:02 +0000 |
---|---|---|
committer | deva <deva> | 2005-03-27 10:18:02 +0000 |
commit | 29ff2e254871ebc359af344d6ee453047e8ad2ec (patch) | |
tree | e2c24aa35e16fb612f3715d8a272b3cd4520537f /src/player.cc | |
parent | 63ac729b32331438a607ec5b8be046143c7592e6 (diff) |
Reimplemented the error object as a stack.
Diffstat (limited to 'src/player.cc')
-rw-r--r-- | src/player.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.cc b/src/player.cc index 9a697f9..1cc0dce 100644 --- a/src/player.cc +++ b/src/player.cc @@ -43,7 +43,7 @@ Player::Player(Error *err, if(SDL_Init(SDL_INIT_VIDEO) < 0) { sprintf(errbuf, "Unable to init SDL: %s\n", SDL_GetError()); - errobj->setError(errbuf); + errobj->pushError(errbuf); return; } screen = SDL_SetVideoMode(DISPLAYWIDTH, @@ -53,7 +53,7 @@ Player::Player(Error *err, if(!screen) { sprintf(errbuf, "Unable to set %dx%d video: %s\n", DISPLAYWIDTH, DISPLAYHEIGHT, SDL_GetError()); - errobj->setError(errbuf); + errobj->pushError(errbuf); return; } |