freebsd-ports/games/xshisen/files/patch-body.C
Mathieu Arnold 5aadc16227 Fix runtime error.
PR:		210793
Submitted by:	tkato432 yahoo com
Sponsored by:	Absolight
2016-07-04 13:30:38 +00:00

11 lines
316 B
C

--- body.C.orig 2002-07-07 07:22:35 UTC
+++ body.C
@@ -227,7 +227,7 @@ Body::refreshhint(void)
p = new Point[max_c][2];
t = new Point[xsize*ysize/PKIND];
- if (hintNum == 0)
+ if (hintNum != 0)
delete[] hintArray;
for(int i=0; i<PKIND; i++) {
piepos[i]->GetPosArray(t, num);