~ubuntu-branches/ubuntu/raring/simutrans/raring-proposed

« back to all changes in this revision

Viewing changes to besch/obj_besch_std_name.h

  • Committer: Package Import Robot
  • Author(s): Ansgar Burchardt
  • Date: 2011-11-03 19:59:02 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20111103195902-uopgwf488mfctb75
Tags: 111.0-1
* New upstream release.
* debian/rules: Update get-orig-source target for new upstream release.
* Use xz compression for source and binary packages.
* Use override_* targets to simplify debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
                const char* get_copyright() const
19
19
                {
20
20
                        text_besch_t const* const ts = get_child<text_besch_t>(1);
21
 
                        return ts ? ts->get_text() : 0;
 
21
                        if (!ts) return 0;
 
22
                        char const* const text = ts->get_text();
 
23
                        return text[0] != '\0' ? text : 0;
22
24
                }
23
25
};
24
26