krychu / wfc

Wave Function Collapse library in C, plus a command-line tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect Comment

nsmryan opened this issue · comments

It looks like the comment about wfc_destroy:

wfc/wfc.h

Line 149 in 8367df5

void wfc_destroy(struct wfc *wfc); // Also destroys the image

is incorrect given:

wfc/wfc.h

Line 1143 in 8367df5

//wfc_img_destroy(wfc->image);

I don't know why this line was commented out, so I won't suggest a solution either way, but it seems like the comment or the code should be changed.

Btw, thank you for this library! I have been looking for a simple, C implementation of WFC!

Good catch, thanks! I think the comment and code should be removed. wfc_destroy shouldn't destroy image that it didn't create and which is passed to it.

Btw, thank you for this library! I have been looking for a simple, C implementation of WFC!

You're welcome, and thanks for using!

Fixed in: 6e37e4d