fix crash in client when no buffer is loaded

This commit is contained in:
d18c7db 2009-07-28 01:21:24 +00:00
parent 49209d37da
commit f81c82c342

View file

@ -331,7 +331,7 @@ static void CmdEM4x50read(char *str)
/* skip over the remainder of the LW */
skip += tmpbuff[i+1]+tmpbuff[i+2];
while(GraphBuffer[skip] > low)
while(skip < MAX_GRAPH_TRACE_LEN && GraphBuffer[skip] > low)
++skip;
skip += 8;