uninitialized vptr
the vptr to isSolidRender() is not known before contruction of the Tile. Its true by default. if false, need to pass false. that is what i did. i verfied what isSolidRender() is in every file. and did exactly what isSolidRender() would return
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
const std::wstring CocoaTile::TEXTURE_AGES[] = { L"cocoa_0", L"cocoa_1", L"cocoa_2"};
|
||||
|
||||
CocoaTile::CocoaTile(int id) : DirectionalTile(id, Material::plant, isSolidRender() )
|
||||
CocoaTile::CocoaTile(int id) : DirectionalTile(id, Material::plant, false)
|
||||
{
|
||||
setTicking(true);
|
||||
}
|
||||
@@ -173,4 +173,4 @@ void CocoaTile::registerIcons(IconRegister *iconRegister)
|
||||
{
|
||||
icons[i] = iconRegister->registerIcon(TEXTURE_AGES[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user