diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-21 18:51:28 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-21 18:51:28 (GMT) |
| commit | 1cee908c165ead0fcecba4519d4584f3935988b5 (patch) | |
| tree | c03981effdc5543fd9e50f70aab678c9631dbbcd /src/interface/SaveButton.cpp | |
| parent | 8ec6aae617525d13697d1c2a612ac37be0f341d5 (diff) | |
| download | powder-1cee908c165ead0fcecba4519d4584f3935988b5.zip powder-1cee908c165ead0fcecba4519d4584f3935988b5.tar.gz | |
Fix thumbnail crash, turns out SaveButton was storing a Thumbnail pointer, not a Thumbnail as I thought
Diffstat (limited to 'src/interface/SaveButton.cpp')
| -rw-r--r-- | src/interface/SaveButton.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/interface/SaveButton.cpp b/src/interface/SaveButton.cpp index 658a969..38fb974 100644 --- a/src/interface/SaveButton.cpp +++ b/src/interface/SaveButton.cpp @@ -61,8 +61,7 @@ void SaveButton::Tick(float dt) tempThumb = Client::Ref().GetThumbnail(save->GetID(), 0); if(tempThumb) { - thumbnail = tempThumb; //Store a local copy of the thumbnail - cout << (void *)(tempThumb) << " " << (void *)(&thumbnail) << endl; + thumbnail = new Thumbnail(*tempThumb); //Store a local copy of the thumbnail if(thumbnail->Data) { if(thumbnail->Size.Y > (Size.Y-25)) |
