Update Effect.cpp

Removed the extern