about summary refs log tree commit diff
path: root/generator/pamcrater.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2017-05-27 02:46:58 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2017-05-27 02:46:58 +0000
commite8bfe183b5e504f0f30691484e9d73ea42113363 (patch)
tree3aeab655cc6d72bd7ad1e5c64695ca5d8b54d352 /generator/pamcrater.c
parentd55db645b8f93b8f7f8c0cf92afcfef65454c020 (diff)
downloadnetpbm-mirror-e8bfe183b5e504f0f30691484e9d73ea42113363.tar.gz
netpbm-mirror-e8bfe183b5e504f0f30691484e9d73ea42113363.tar.xz
netpbm-mirror-e8bfe183b5e504f0f30691484e9d73ea42113363.zip
Release 10.78.04
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2984 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'generator/pamcrater.c')
-rw-r--r--generator/pamcrater.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/pamcrater.c b/generator/pamcrater.c
index 50745501..8c1fda40 100644
--- a/generator/pamcrater.c
+++ b/generator/pamcrater.c
@@ -215,7 +215,7 @@ terrainModP(struct pam * const pamP,
    would be a pointer to the sample at Column 2 or Row 2.  If they are both
    -1, we would point to Column 9, Row 9.
 -----------------------------------------------------------------------------*/
-    return &terrain[mod(x, pamP->height)][mod(y, pamP->width)][0];
+    return &terrain[mod(y, pamP->height)][mod(x, pamP->width)][0];
 }