diff --git a/source/actor.cpp b/source/actor.cpp index 8c7765c..9247447 100644 --- a/source/actor.cpp +++ b/source/actor.cpp @@ -28,6 +28,7 @@ namespace actor { actor_t *act = (actor_t*)malloc(sizeof(actor_t)); strcpy(act->name, name); + strcpy(act->bmp, bmp); act->pos = p; act->size = s; act->surface = draw::loadSurface(bmp); diff --git a/source/actor.h b/source/actor.h index 0246462..573faed 100644 --- a/source/actor.h +++ b/source/actor.h @@ -37,6 +37,7 @@ namespace actor { char name[16]; draw::surface *surface; + char bmp[16]; SDL_Rect bmp_rect; SDL_Point bmp_offset;