- Arreglat el problema

This commit is contained in:
2023-09-26 20:02:26 +02:00
parent e6cd1233e2
commit b0e4db1e8e
3 changed files with 21 additions and 12 deletions

View File

@@ -27,8 +27,8 @@ namespace actor
actor_t *create(std::string name, vec3_t p, vec3_t s, std::string bmp, SDL_Rect r, SDL_Point o)
{
actor_t *act = (actor_t*)malloc(sizeof(actor_t));
act->name = std::string(name);
act->bmp = std::string(bmp);
strcpy(act->name, name.c_str());
strcpy(act->bmp, bmp.c_str());
act->pos = p;
act->size = s;
act->surface = draw::loadSurface(bmp.c_str());