Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error on linux #158

Open
ohmtal opened this issue Mar 29, 2020 · 2 comments
Open

compile error on linux #158

ohmtal opened this issue Mar 29, 2020 · 2 comments

Comments

@ohmtal
Copy link

ohmtal commented Mar 29, 2020

/opt/Torque3D/Engine/source/T3D/tsStatic.cpp: In member function ‘Resource<TSShape> TSStatic::getShape() const’:
/opt/Torque3D/Engine/source/T3D/tsStatic.cpp:1366:11: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘Resource<TSShape>’
 1366 |    return nullptr;
      |           ^~~~~~~
      |           |
      |           std::nullptr_t
compilation terminated due to -Wfatal-errors.

@Azaezel
Copy link

Azaezel commented Mar 30, 2020

give

Resource<TSShape> TSStatic::getShape() const
{
   if (mShapeAsset->isAssetValid())
   {
      return mShapeAsset->getShapeResource();
   }

   return NULL;
}

a shot when you've time?

@ohmtal
Copy link
Author

ohmtal commented Mar 30, 2020

I tried this last night. Did also not work - cant remember the exact error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants