summaryrefslogtreecommitdiff
path: root/src/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.cc')
-rw-r--r--src/player.cc4
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;
}