|
|
8a92096 |
--- abe-1_0/src/Monster.c.gcc4 2005-04-11 18:53:41.041488498 +0300
|
|
|
8a92096 |
+++ abe-1_0/src/Monster.c 2005-04-11 19:03:18.791039043 +0300
|
|
|
8a92096 |
@@ -563,13 +563,13 @@
|
|
|
8a92096 |
}
|
|
|
8a92096 |
|
|
|
8a92096 |
void allocFireCustom(LiveMonster *live) {
|
|
|
8a92096 |
- if(((int*)live->custom = (int*)malloc(sizeof(int))) == NULL) {
|
|
|
8a92096 |
+ if((live->custom = (int*)malloc(sizeof(int))) == NULL) {
|
|
|
8a92096 |
fprintf(stderr, "Out of memory when trying to allocate custom storage for fire column.\n");
|
|
|
8a92096 |
}
|
|
|
8a92096 |
}
|
|
|
8a92096 |
|
|
|
8a92096 |
void allocEndGameCustom(LiveMonster *live) {
|
|
|
8a92096 |
- if(((int*)live->custom = (int*)malloc(sizeof(int))) == NULL) {
|
|
|
8a92096 |
+ if((live->custom = (int*)malloc(sizeof(int))) == NULL) {
|
|
|
8a92096 |
fprintf(stderr, "Out of memory when trying to allocate custom storage for end game.\n");
|
|
|
8a92096 |
}
|
|
|
8a92096 |
*((int*)(live->custom)) = 0;
|