From 661feeabf4a4f0a8b0bee23b53ba557a14352d00 Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 7 May 2020 12:37:32 +0200 Subject: [PATCH] and another one... --- src/matfx.cpp | 2 +- src/rwplugins.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matfx.cpp b/src/matfx.cpp index 7a60fd3..0add6c7 100644 --- a/src/matfx.cpp +++ b/src/matfx.cpp @@ -143,7 +143,7 @@ MatFX::getEffects(const Material *m) } MatFX* -MatFX::get(Material *m) +MatFX::get(const Material *m) { return *PLUGINOFFSET(MatFX*, m, matFXGlobals.materialOffset); } diff --git a/src/rwplugins.h b/src/rwplugins.h index 62165ba..26091d1 100644 --- a/src/rwplugins.h +++ b/src/rwplugins.h @@ -129,7 +129,7 @@ struct MatFX static void setEffects(Material *m, uint32 flags); static uint32 getEffects(const Material *m); - static MatFX *get(Material *m); + static MatFX *get(const Material *m); int32 getEffectIndex(uint32 type); // Bump void setBumpTexture(Texture *t);