From cc0ce764c2c5921f6568bb282f796634970467f3 Mon Sep 17 00:00:00 2001 From: Kp Date: Fri, 25 Jul 2014 23:56:59 +0000 Subject: [PATCH] Fix reading HXM polymodels on x64 --- d1x-rebirth/main/custom.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/d1x-rebirth/main/custom.cpp b/d1x-rebirth/main/custom.cpp index d31e2f0a4..683325e95 100644 --- a/d1x-rebirth/main/custom.cpp +++ b/d1x-rebirth/main/custom.cpp @@ -534,13 +534,7 @@ static void load_hxm(const d_fname &hxmname) else { pm = &Polygon_models[repl_num]; - pm->model_data.reset(); - if (PHYSFS_read(f, pm, sizeof(polymodel), 1) < 1) - { - PHYSFS_close(f); - return; - } - + polymodel_read(pm, f); pm->model_data.reset(new ubyte[pm->model_data_size]); if (PHYSFS_read(f, pm->model_data, pm->model_data_size, 1) < 1) {