]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/xundump.c
WIP empdump, fill in stuff not in xdump
[empserver] / src / lib / common / xundump.c
index f84dcb1a5e338b0aece1a6ad79e7269040dd8a9c..76de98ca74e4d8af0308918633476a96ac9894dd 100644 (file)
@@ -492,6 +492,10 @@ getobj(void)
                      cur_id, ep->name, ep->fids - !!need_sentinel - 1);
        } else
            cur_obj = ef_ptr(cur_type, cur_id);
+       /* TODO find a less ugly solution */
+       if (EF_IS_GAME_STATE(cur_type) && cur_type != EF_POWER &&
+           cur_type != EF_MAP && cur_type != EF_BMAP)
+           *((short *)cur_obj) = cur_type;
     }
 
     return cur_obj;