Skip to content

Crash in Visual Studio 2008 (vertex index out of range in CMesh::Render) #23

@GoogleCodeExporter

Description

@GoogleCodeExporter
Reproducible crash in VS.NET 2008, due to vertex index out of range when
rendering quad strips in CMesh::Render() function.

Believe this is due to indices generated in CBuilding::CreateSimple() - it
generates 11 indices, but only has 10 vertices. Fixed this by changing loop
condition from i<=10 to i<10.

Please see attached diff which seems to fix the problem. Also fixes a minor
warning about uninitialised variable addon in CBuilding::ConstructRoof

Seems fine now - very cool demo!

Original issue reported on code.google.com by jam3sward on 16 Jun 2009 at 9:49

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions