diff --git a/src/c/character.c b/src/c/character.c index c994b8d..02254ec 100644 --- a/src/c/character.c +++ b/src/c/character.c @@ -102,7 +102,7 @@ void setCharacterName (Character *character, char *newName) { strcpy(character->name,newName); } -char getCharacterName (Character *character) { +char* getCharacterName (Character *character) { return character->name; } diff --git a/src/c/character.h b/src/c/character.h index ee7973c..2afa7d4 100644 --- a/src/c/character.h +++ b/src/c/character.h @@ -62,6 +62,6 @@ void levelUp (Character *character); void setCharacterName (Character *character, char newName[]); -char getCharacterName (Character *character); +char* getCharacterName (Character *character); #endif \ No newline at end of file