diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/char_sql/char.c | 2 | ||||
-rw-r--r-- | src/map/pet.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index 82c8e2a34..63e47a973 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -3338,7 +3338,9 @@ int do_init(int argc, char **argv){ #undef mysql_query int debug_mysql_query(char *file, int line, void *mysql, const char *q) { +#ifdef TWILIGHT printf("sql: %s:%d# %s\n", file, line, q); +#endif return mysql_query((MYSQL *) mysql, q); } diff --git a/src/map/pet.c b/src/map/pet.c index 23620f486..80331bd0f 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -608,7 +608,6 @@ int pet_remove_map(struct map_session_data *sd) clif_clearchar_area(&sd->pd->bl,0); map_delblock(&sd->pd->bl); map_deliddb(&sd->pd->bl); - map_freeblock(sd->pd); } return 0; } |