Another change that looks bigger than it is: changed out the global extern WResourceManager to a real singleton. This means that it's no longer being init'ed at static initialization time, and we can debug construction/destruction properly; it's also safer in a multithreaded context.
This commit is contained in:
@@ -265,8 +265,8 @@ void GameObserver::startGame(Rules * rules)
|
||||
{
|
||||
for (int i = 0; i < players[0]->game->hand->nb_cards; i++)
|
||||
{
|
||||
resources.RetrieveCard(players[0]->game->hand->cards[i], CACHE_THUMB);
|
||||
resources.RetrieveCard(players[0]->game->hand->cards[i]);
|
||||
WResourceManager::Instance()->RetrieveCard(players[0]->game->hand->cards[i], CACHE_THUMB);
|
||||
WResourceManager::Instance()->RetrieveCard(players[0]->game->hand->cards[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user