From d0725afa8363b5f7b0612e087b48013d39339039 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 18 Jan 2015 11:37:45 -0200 Subject: Fixing 38 issues Addressing out of bounds read/write, pointless null checks on already deferenced variables, dead code. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind --- src/map/pet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/pet.c') diff --git a/src/map/pet.c b/src/map/pet.c index 71dd39401..3d155b179 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -1177,7 +1177,7 @@ int read_petdb() if( pet->db[j].equip_script ) { script->free_code(pet->db[j].equip_script); - pet->db[j].pet_script = NULL; + pet->db[j].equip_script = NULL; } } -- cgit v1.2.3-70-g09d2