diff ppe/Bom.cc @ 19:00c3272a801f

fix.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Sun, 26 Dec 2010 18:57:08 +0900
parents 6382d8f6a973
children 6989f8cb0259
line wrap: on
line diff
--- a/ppe/Bom.cc	Fri Dec 17 22:18:11 2010 +0900
+++ b/ppe/Bom.cc	Sun Dec 26 18:57:08 2010 +0900
@@ -1,16 +1,16 @@
-#include "tobject.h"
+#include "task_object.h"
 
 void
-Bom(int x, int y, int bomend, bomchar *bchar)
+Bom(int x, int y, int *bomend, bomchar *bchar)
 {
     int i;
-    bomend++;
-    if (bomend > 49) {
-	bomend = 49;
+    *bomend++;
+    if (*bomend > 49) {
+	*bomend = 49;
 	return;
     }
 
-    i = bomend;
+    i = *bomend;
     bchar[i].x = x;
     bchar[i].y = y;
     bchar[i].no = 0;