diff options
| author | Japa | 2010-06-25 14:05:19 +0000 |
|---|---|---|
| committer | Japa | 2010-06-25 14:05:19 +0000 |
| commit | 83ca2eca776c362110137a489c7bda42ec99a5d2 (patch) | |
| tree | e411cfd77eb3f8c143496604d4fd18d0a32338ce /VegetationConfiguration.cpp | |
| parent | 313d5fd88087eded7fb9cfa24419b34d2fdaf23f (diff) | |
| download | stonesense-83ca2eca776c362110137a489c7bda42ec99a5d2.tar.gz stonesense-83ca2eca776c362110137a489c7bda42ec99a5d2.tar.bz2 stonesense-83ca2eca776c362110137a489c7bda42ec99a5d2.tar.xz | |
all sprites other than buildings are now object oriented and seem to be working niceley
ToDo: get mud working again.
Diffstat (limited to 'VegetationConfiguration.cpp')
| -rw-r--r-- | VegetationConfiguration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/VegetationConfiguration.cpp b/VegetationConfiguration.cpp index 570c8c7..5a1563a 100644 --- a/VegetationConfiguration.cpp +++ b/VegetationConfiguration.cpp @@ -74,7 +74,7 @@ c_sprite * getVegetationSprite(vector<VegetationConfiguration>& vegetationConfig if (current->grown != grown) continue;
return &(current->sprite);
}
- c_sprite* sprite = new c_sprite;
+ static c_sprite* sprite = new c_sprite;
sprite->set_sheetindex(-1);
return sprite;
}
|
