| 1009 | } |
| 1010 | |
| 1011 | float CScriptGameObject::GetMaxWeight() const |
| 1012 | { |
| 1013 | auto e = smart_cast<CInventoryOwner*>(&object()); |
| 1014 | if (!e) |
| 1015 | { |
| 1016 | Msg("!!CInventoryOwner : cannot access class member GetMaxWalkWeight!"); |
| 1017 | return 0; |
| 1018 | } |
| 1019 | |
| 1020 | return e->MaxCarryWeight(); |
| 1021 | } |
| 1022 | float CScriptGameObject::GetMaxWalkWeight() const |
| 1023 | { |
| 1024 | auto e = smart_cast<CActor*>(&object()); |
nothing calls this directly
no test coverage detected