~widelands-dev/widelands/campaigns

« back to all changes in this revision

Viewing changes to src/logic/widelands_streamread_inlines.h

  • Committer: Holger Rapp
  • Date: 2010-11-10 17:04:37 UTC
  • mfrom: (5614.1.73 trunk)
  • Revision ID: sirver@gmx.de-20101110170437-vlq0iwajl2vokrkf
Merged trunk for latest bug fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
}
61
61
 
62
62
inline Immovable_Descr const & StreamRead::Immovable_Type
63
 
        (Tribe_Descr const & tribe)
64
 
{
65
 
        char const * const name = CString();
66
 
        int32_t const index = tribe.get_immovable_index(name);
67
 
        if (index == -1)
68
 
                throw tribe_immovable_nonexistent(tribe.name(), name);
69
 
        return *tribe.get_immovable_descr(index);
70
 
}
71
 
 
72
 
inline Immovable_Descr const & StreamRead::Immovable_Type
73
63
        (Editor_Game_Base const & egbase)
74
64
{
75
65
        if (Tribe_Descr const * const tribe = Tribe_allow_null(egbase))