diff options
Diffstat (limited to 'src/map/charsave.c')
-rw-r--r-- | src/map/charsave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/charsave.c b/src/map/charsave.c index 01d6afc07..3f5241900 100644 --- a/src/map/charsave.c +++ b/src/map/charsave.c @@ -26,7 +26,7 @@ struct mmo_charstatus *charsave_loadchar(int charid){ char *str_p;
friends = 0;
- c = (struct mmo_charstatus *)aMalloc(sizeof(struct mmo_charstatus));
+ c = (struct mmo_charstatus *)aCalloc(1,sizeof(struct mmo_charstatus));
if(charid <= 0){
ShowError("charsave_loadchar() charid <= 0! (%d)", charid);
|