just a const

This commit is contained in:
aap 2020-05-07 12:35:28 +02:00
parent 4e97f4f862
commit 3398ec6a16
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ MatFX::setEffects(Material *mat, uint32 type)
} }
uint32 uint32
MatFX::getEffects(Material *m) MatFX::getEffects(const Material *m)
{ {
MatFX *fx = *PLUGINOFFSET(MatFX*, m, matFXGlobals.materialOffset); MatFX *fx = *PLUGINOFFSET(MatFX*, m, matFXGlobals.materialOffset);
if(fx) if(fx)

View File

@ -128,7 +128,7 @@ struct MatFX
uint32 type; uint32 type;
static void setEffects(Material *m, uint32 flags); static void setEffects(Material *m, uint32 flags);
static uint32 getEffects(Material *m); static uint32 getEffects(const Material *m);
static MatFX *get(Material *m); static MatFX *get(Material *m);
int32 getEffectIndex(uint32 type); int32 getEffectIndex(uint32 type);
// Bump // Bump