From 29ff2e254871ebc359af344d6ee453047e8ad2ec Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 27 Mar 2005 10:18:02 +0000 Subject: Reimplemented the error object as a stack. --- src/player.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/player.cc') 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; } -- cgit v1.2.3