mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 11:42:31 +01:00
- bugfix from tomreyn's stacktrace for resource selection
This commit is contained in:
parent
d322f73284
commit
66ea587b7f
@ -767,7 +767,7 @@ void Gui::computeDisplay(){
|
||||
|
||||
// ================ PART 1 ================
|
||||
const Object *selectedResourceObject =getSelectedResourceObject();
|
||||
if(selection.isEmpty() && selectedResourceObject != NULL) {
|
||||
if(selection.isEmpty() && selectedResourceObject != NULL && selectedResourceObject->getResource() != NULL) {
|
||||
Resource *r = selectedResourceObject->getResource();
|
||||
display.setTitle(r->getType()->getName(true));
|
||||
display.setText(lang.get("Amount")+ ": "+intToStr(r->getAmount())+" / "+intToStr(r->getType()->getDefResPerPatch()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user