When I use "ent_getmesh(NULL, i, 0);" to get the mesh of the level, instead of returning 0 for an invalid mesh it crashes the entire engine
So I cannot loop through the entire levels mesh until there is an invalid one, the only way to do it is to look at how many level blocks are in WED, acknowledge the grouped mesh and calculate myself how many mesh there should be and input that into SED and compile... which is not right! I need to be able to tell dynamically.
Am I doing something wrong? I compile with "Create Meshes" on. Is there something else I am missing?
I am using A7.07 and Windows Vista Ultimate.