mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
First implementation that works
This commit is contained in:
@ -100,6 +100,7 @@ void Modificator::run()
|
||||
|
||||
void Modificator::dependency(Modificator * modificator)
|
||||
{
|
||||
//TODO: Check for circular dependencies
|
||||
if(modificator && modificator != this)
|
||||
{
|
||||
//TODO: use vstd::contains
|
||||
@ -110,6 +111,7 @@ void Modificator::dependency(Modificator * modificator)
|
||||
|
||||
void Modificator::postfunction(Modificator * modificator)
|
||||
{
|
||||
// TODO:Check for circular dependencies
|
||||
if(modificator && modificator != this)
|
||||
{
|
||||
if(std::find(modificator->preceeders.begin(), modificator->preceeders.end(), this) == modificator->preceeders.end())
|
||||
|
Reference in New Issue
Block a user