Fixed compile error (portals)

WITH A FULL REFORK