zodiacon/PoolMonXv2

CView::LoadPoolTagText(), crashed as the newline format somehow changed to \n

EthanZBY opened this issue · 1 comments

A little bit strange, both pooltag.txt and the compiled res are \n for newline rather than \r\n.

void CView::LoadPoolTagText() {

	if (strncmp(data, "//", 2) == 0 || _strnicmp(data, "rem", 3) == 0
		|| strncmp(data, "\r\n", 2) == 0 || strncmp(data, "\n", 1) == 0)
		continue;

|| strncmp(data, "\n", 1) == 0
has to be added

I added a fix just in case