dashdan / freerct

Automatically exported from code.google.com/p/freerct
0 stars 0 forks source link

Assert in map.h while terraforming a path with a guest #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Terraform a tile with a path _and_ guest on it
2. Boom!

What is the expected output? What do you see instead?
When terraforming near paths, it should create 'supports' rather than breaking 
the path up

Assert:
freerct: map.h:138: const SurfaceVoxelData* Voxel::GetSurface() const: 
Assertion `this->type == VT_SURFACE' failed.

Program received signal SIGABRT, Aborted.

gdb backtrace:
#0  0x00007ffff6e46475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff6e496f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff6e3f621 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x000000000040772e in Voxel::GetSurface (this=0x7ae258) at map.h:138
#4  0x000000000040db34 in GetZHeight (x_vox=6, y_vox=1, z_vox=8, x_pos=158, 
    y_pos=112) at people.cpp:80
#5  0x000000000040e716 in Person::OnAnimate (this=0x67ffe0, delay=30)
    at people.cpp:347
#6  0x000000000040f1ea in Guests::OnAnimate (this=0x67ffe0, delay=30)
    at people.cpp:636
#7  0x0000000000405167 in main () at main.cpp:129

Original issue reported on code.google.com by CharlesP...@googlemail.com on 10 Nov 2012 at 12:51

GoogleCodeExporter commented 9 years ago

Original comment by Alberth2...@gmail.com on 11 Nov 2012 at 5:25

GoogleCodeExporter commented 9 years ago
Fixed in the terraforming updates

Original comment by CharlesP...@googlemail.com on 15 Dec 2012 at 5:12