Use the deferred virtual call mechanism to avoid the virtual
call bug in the constructor. See docs/wrong_virtual_call.md for a description.
This commit is contained in:
parent
0b6cdeb5f5
commit
5e76b49cae
6 changed files with 64 additions and 11 deletions
|
@ -98,7 +98,7 @@ namespace cloonel {
|
|||
///--------------------------------------------------------------------------
|
||||
///--------------------------------------------------------------------------
|
||||
TiledWallpaper::TileCountNotifiable::TileCountNotifiable (SDLMain* parMain, const ushort2& parTileSize) :
|
||||
BaseClass(parMain),
|
||||
BaseClass(parMain, this),
|
||||
m_tileCount(CountTilesInScreen(parMain->WidthHeight(), parTileSize)),
|
||||
m_tileSize(vector_cast<float2>(parTileSize))
|
||||
#if defined(WITH_DEBUG_VISUALS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue