[PICA] More textoor

This commit is contained in:
wheremyfoodat 2023-02-01 00:34:58 +02:00
parent ce72368f01
commit 51130b295a
6 changed files with 53 additions and 2 deletions

View file

@ -41,7 +41,7 @@ public:
}
// Adds a surface object to the cache and returns it
SurfaceType add(SurfaceType& surface) {
SurfaceType add(const SurfaceType& surface) {
if (size >= capacity) {
Helpers::panic("Surface cache full! Add emptying!");
}