| 378 | DEFINE_FAST_ALLOCATOR(Forest) |
| 379 | |
| 380 | Forest::Forest(BuildingType* type, int id) : base(type->GetShape(), id) |
| 381 | { |
| 382 | _type = type; |
| 383 | _type->VehicleAddRef(); |
| 384 | |
| 385 | #if FOREST_PATHS |
| 386 | int n = NPos(); |
| 387 | _locks.Resize(n); |
| 388 | for (int i = 0; i < n; i++) |
| 389 | _locks[i] = 0; |
| 390 | #endif |
| 391 | } |
| 392 | |
| 393 | Forest::~Forest() |
| 394 | { |
nothing calls this directly
no test coverage detected