Browse Source

prod: changed returntype of getcharactername

remotes/origin/thirdcycle
Kai Kehres 2 years ago
parent
commit
b493f97146
  1. 2
      src/c/character.c
  2. 2
      src/c/character.h

2
src/c/character.c

@ -102,7 +102,7 @@ void setCharacterName (Character *character, char *newName) {
strcpy(character->name,newName); strcpy(character->name,newName);
} }
char getCharacterName (Character *character) {
char* getCharacterName (Character *character) {
return character->name; return character->name;
} }

2
src/c/character.h

@ -62,6 +62,6 @@ void levelUp (Character *character);
void setCharacterName (Character *character, char newName[]); void setCharacterName (Character *character, char newName[]);
char getCharacterName (Character *character);
char* getCharacterName (Character *character);
#endif #endif
Loading…
Cancel
Save