blob: 2df974acbeab23ff1ff32f895d3cc18146b36aee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- modules/preferredroom.c.orig Fri Sep 2 21:30:38 2005
+++ modules/preferredroom.c Tue Nov 22 22:19:51 2005
@@ -182,6 +182,8 @@
int module_init(moduleoption *opt)
{
int c;
+ fitnessfunc *fitness;
+
ptroom=malloc(sizeof(*ptroom)*restype_find("teacher")->resnum);
for(c=0;c<restype_find("teacher")->resnum;c++) ptroom[c]=-1;
@@ -197,8 +199,6 @@
return(-1);
}
- fitnessfunc *fitness;
-
precalc_new(module_precalc);
handler_res_new("teacher", "preferred-room", gettroom);
|