Devtools: Bugs in Alt+Shift+T "Change enemy type"
First press changes a rabbit to this:
Second press gives a segfault:
Thread 1 "lugaru" received signal SIGSEGV, Segmentation fault.
0x00000000004f921a in Person::DrawSkeleton (this=0x6709ec0) at /home/akien/Projects/lugaru/lugaru/Source/Objects/Person.cpp:6741
6741 (v0.z * (1 - morphness) + v1.z * morphness) * proportionhead.z);
(gdb) bt full
#0 0x00000000004f921a in Person::DrawSkeleton (this=0x6709ec0) at /home/akien/Projects/lugaru/lugaru/Source/Objects/Person.cpp:6741
v0 = <error reading variable>
v1 = <error reading variable>
j = 0
p1 = 0
p2 = 1
i = 0
terrainlight = {x = 0, y = 0, z = 0}
framemult = 0.00999999978
mid = {x = -0.454241276, y = 7.17476368, z = 0.857857704}
M = {-0.878573, 0.286442399, 0.382178366, 0, 0.0523888804, -0.737566054, 0.673239708, 0, 0.4747262, 0.611512065, 0.632999182, 0, 1.04867578, 0.434507757, 0.253792077, 1}
weaponpoint = {x = 0, y = 0, z = 0}
morphness = 0.967199862
k = 0
terrainheight = 1.96181785e-43
distance = 682.488892
updatedelaychange = -25.6800003
weaponattachmuscle = 0
weaponrotatemuscle = 0
start = 4
endthing = 4
oldplayerdetail = 1
#1 0x0000000000524b7c in Game::DrawGLScene (side=stereoCenter) at /home/akien/Projects/lugaru/lugaru/Source/GameDraw.cpp:454
i = -1
k = 1
opacity = 0.400000006
rotation = 0
changed = 0
olddrawmode = 0
terrainlight = {x = 0.999909461, y = 0.999909461, z = 0.999932766}
---Type <return> to continue, or q <return> to quit---
distance = 2.49518275
point = {x = -1.95688868, y = 4.39268494, z = 2.27499747}
size = 0.400000006
texcoordwidth = 1
texcoordheight = 1
texviewwidth = 1024
texviewheight = 1024
checkpoint = {x = 683.488892, y = 101.153091, z = 719.962341}
tempmult = 0.015300001
tutorialopac = 2.80259693e-45
string = ""
drawmode = 0
#2 0x000000000045a99a in DoUpdate () at /home/akien/Projects/lugaru/lugaru/Source/main.cpp:462
sps = 200
count = 21
oldmult = 0.0962999985
#3 0x000000000045b146 in main (argc=1, argv=0x7fffffffdb70) at /home/akien/Projects/lugaru/lugaru/Source/main.cpp:699
e = {type = 769, common = {type = 769, timestamp = 122223}, window = {type = 769, timestamp = 122223, windowID = 2, event = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000',
padding3 = 0 '\000', data1 = 18, data2 = 111}, key = {type = 769, timestamp = 122223, windowID = 2, state = 0 '\000', repeat = 0 '\000', padding2 = 0 '\000',
padding3 = 0 '\000', keysym = {scancode = SDL_SCANCODE_O, sym = 111, mod = 257, unused = 0}}, edit = {type = 769, timestamp = 122223, windowID = 2,
text = "\000\000\000\000\022\000\000\000o\000\000\000\001\001\355\001", '\000' <repeats 12 times>, "`\230\355\001", start = 0, length = 0}, text = {type = 769,
timestamp = 122223, windowID = 2, text = "\000\000\000\000\022\000\000\000o\000\000\000\001\001\355\001", '\000' <repeats 12 times>, "`\230\355\001"}, motion = {type = 769,
timestamp = 122223, windowID = 2, which = 0, state = 18, x = 111, y = 32309505, xrel = 0, yrel = 0}, button = {type = 769, timestamp = 122223, windowID = 2, which = 0,
button = 18 '\022', state = 0 '\000', clicks = 0 '\000', padding1 = 0 '\000', x = 111, y = 32309505}, wheel = {type = 769, timestamp = 122223, windowID = 2, which = 0, x = 18,
y = 111, direction = 32309505}, jaxis = {type = 769, timestamp = 122223, which = 2, axis = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', value = 18,
padding4 = 0}, jball = {type = 769, timestamp = 122223, which = 2, ball = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', xrel = 18, yrel = 0},
jhat = {type = 769, timestamp = 122223, which = 2, hat = 0 '\000', value = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000'}, jbutton = {type = 769, timestamp = 122223,
which = 2, button = 0 '\000', state = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000'}, jdevice = {type = 769, timestamp = 122223, which = 2}, caxis = {type = 769,
timestamp = 122223, which = 2, axis = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', value = 18, padding4 = 0}, cbutton = {type = 769,
timestamp = 122223, which = 2, button = 0 '\000', state = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000'}, cdevice = {type = 769, timestamp = 122223, which = 2},
---Type <return> to continue, or q <return> to quit---
adevice = {type = 769, timestamp = 122223, which = 2, iscapture = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000'}, quit = {type = 769,
timestamp = 122223}, user = {type = 769, timestamp = 122223, windowID = 2, code = 0, data1 = 0x6f00000012, data2 = 0x1ed0101}, syswm = {type = 769, timestamp = 122223,
msg = 0x2}, tfinger = {type = 769, timestamp = 122223, touchId = 2, fingerId = 476741369874, x = 8.70614909e-38, y = 0, dx = 0, dy = 0, pressure = 8.72786978e-38}, mgesture = {
type = 769, timestamp = 122223, touchId = 2, dTheta = 2.52233724e-44, dDist = 1.5554413e-43, x = 8.70614909e-38, y = 0, numFingers = 0, padding = 0}, dgesture = {type = 769,
timestamp = 122223, touchId = 2, gestureId = 476741369874, numFingers = 32309505, error = 0, x = 0, y = 0}, drop = {type = 769, timestamp = 122223,
file = 0x2 <error: Cannot access memory at address 0x2>, windowID = 18},
padding = "\001\003\000\000o\335\001\000\002\000\000\000\000\000\000\000\022\000\000\000o\000\000\000\001\001\355\001", '\000' <repeats 12 times>, "`\230\355\001", '\000' <repeats 11 times>}
gameDone = false
gameFocused = true
stats = {buffer_max = 2, options_max = 10}
parse = {op_count = 1, nonop_count = 0, nonop_args = 0x0, err = false}