summaryrefslogtreecommitdiffstats
path: root/src/ft_p_lcom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_p_lcom.c')
-rw-r--r--src/ft_p_lcom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_p_lcom.c b/src/ft_p_lcom.c
index 8c3d6d4..3ea6b16 100644
--- a/src/ft_p_lcom.c
+++ b/src/ft_p_lcom.c
@@ -12,6 +12,7 @@
#include <libft.h>
#include <stdint.h>
+#include "ft_s_lcom.h"
#include "ft_s_struct.h"
int8_t
@@ -31,7 +32,7 @@ int8_t
{
return (-1);
}
- msh->lcom = msh->lcom.next;
+ msh->lcom = msh->lcom->next;
i++;
}
return (0);