Skip to content

Commit

Permalink
for FC 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nouverbe authored and Xottab-DUTY committed Jan 20, 2018
1 parent eb1b637 commit 4236d45
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/xrGame/script_game_object_inventory_owner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,12 @@ void CScriptGameObject::SetCommunityGoodwill_obj(LPCSTR community, int goodwill)
int CScriptGameObject::GetAttitude(CScriptGameObject* pToWho)
{
CInventoryOwner* pInventoryOwner = smart_cast<CInventoryOwner*>(&object());
VERIFY(pInventoryOwner);
//VERIFY(pInventoryOwner);
if (!pInventoryOwner)
{
GEnv.ScriptEngine->script_log(LuaMessageType::Error, "GetAttitude available only for InventoryOwner");
return 0;
}
CInventoryOwner* pOthersInventoryOwner = smart_cast<CInventoryOwner*>(&pToWho->object());
VERIFY(pOthersInventoryOwner);
return RELATION_REGISTRY().GetAttitude(pInventoryOwner, pOthersInventoryOwner);
Expand Down

0 comments on commit 4236d45

Please sign in to comment.