mechanicmarx / gamekit

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

Crash when trying to move the player in CppDemo #208

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile and run CppDemo 
2. Press W 
3. Crash

What is the expected output? What do you see instead?
The player moves

What version of the product are you using? On what operating system?
r1006 with Ubuntu

Please provide any additional information below.
When cloning the player object to create enemies objects some of the 
sub-objects for the player (zRot, xRot) are not cloned, these seems to be used 
to handle the camera view for the player (which for enemies shouldn't be 
necessary) but other parts of the code assume for these objects to be non-null 
and thus the application crashes. 

The attached patch clones the additional required objects when cloning the 
Player object.

Original issue reported on code.google.com by vek...@gmail.com on 8 Jan 2012 at 3:47

Attachments:

GoogleCodeExporter commented 8 years ago
working fine with patch

Original comment by lukasz.wychrystenko@gmail.com on 8 Jan 2012 at 5:47

GoogleCodeExporter commented 8 years ago
Fixed in r1012

Original comment by xavier.thomas.1980@gmail.com on 22 Jan 2012 at 5:10