Revision | fb2fa2b2a8b54316de685a5c72064cd945c22976 (tree) |
---|---|
Time | 2013-03-08 03:15:30 |
Author | Face |
Commiter | Face |
Genericvessel: fixed comment typo and crash without payloads
@@ -241,7 +241,8 @@ | ||
241 | 241 | for(i=0;i<sc3.Config.mshcnt;i++){ |
242 | 242 | if(sc3.Data.msh[i].typ==0)SetMeshVisibilityMode(msh_idh[i]=AddMesh(msh_h[i]=oapiLoadMeshGlobal(sc3.Data.msh[i].nam),&sc3.Data.msh[i].off),sc3.Data.msh[i].vis); |
243 | 243 | } |
244 | - for(i=0;i<sc3.Data.pay[i].mesh_cnt;i++)DelMesh(sc3.Data.pay[i].mesh+i); //Delete payload meshes again, native parser does it, anyway | |
244 | + for(i=0;i<sc3.Config.paycnt;i++) | |
245 | + for(j=0;j<sc3.Data.pay[i].mesh_cnt;j++)DelMesh(sc3.Data.pay[i].mesh+j); //Delete payload meshes again, native parser does it, anyway | |
245 | 246 | |
246 | 247 | //Animations |
247 | 248 | ani=new genericvessel_animinfo[sc3.Config.anicnt]; |
@@ -26,7 +26,7 @@ | ||
26 | 26 | private: |
27 | 27 | // mesh name of payload. You can define up to 5 meshes for one |
28 | 28 | // payload, they must be declared in the same string, with each mesh name separated by a ; |
29 | - // (semi-column). Ex: mesh1;mesh2 | |
29 | + // (semi-colon). Ex: mesh1;mesh2 | |
30 | 30 | vector<char *> meshname; |
31 | 31 | |
32 | 32 | // the name that will be given to the vessel at payload release time |